![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
#include "machine.h"#include "types.h"#include "macros.h"
Include dependency graph for vector.cpp:Go to the source code of this file.
Functions | |
| void | ColorAccum (color *a, color *b) |
| void | ColorAddS (color *a, color *b, flt s) |
| void | ColorScale (color *a, flt s) |
| vector | Raypnt (ray *a, flt t) |
| void | VAdd (vector *a, vector *b, vector *c) |
| void | VAddS (flt a, vector *A, vector *B, vector *C) |
| void | VCross (vector *a, vector *b, vector *c) |
| flt | VDot (vector *a, vector *b) |
| flt | VLength (vector *a) |
| void | VNorm (vector *a) |
| void | VScale (vector *a, flt s) |
| void | VSub (vector *a, vector *b, vector *c) |
Definition at line 139 of file vector.cpp.
References color::b, color::g, color::r, and test::s.
Referenced by shade_reflection(), shade_transmission(), and shader().
Definition at line 111 of file vector.cpp.
References ray::d, ray::o, vector::x, vector::y, and vector::z.
Referenced by camray(), grid_intersect(), ring_intersect(), shade_reflection(), and shade_transmission().
Definition at line 68 of file vector.cpp.
References vector::x, vector::y, and vector::z.
Referenced by cylinder_normal(), light_normal(), newplane(), plane_intersect(), quadric_normal(), ring_intersect(), ring_normal(), shade_phong(), sphere_normal(), and tri_normal().
| void VNorm | ( | vector * | a | ) |
Definition at line 82 of file vector.cpp.
References vector::x, vector::y, and vector::z.
Referenced by box_normal(), cylinder_intersect(), cylinder_normal(), ext_volume_texture(), fcylinder_intersect(), light_normal(), newplane(), quadric_intersect(), quadric_normal(), ring_normal(), rt_camerasetup(), shade_phong(), sphere_normal(), stri_normal(), trace(), and tri_normal().
Definition at line 121 of file vector.cpp.
References test::s, vector::x, vector::y, and vector::z.
Referenced by grid_intersect(), and shade_phong().
Definition at line 99 of file vector.cpp.
References vector::x, vector::y, and vector::z.
Referenced by box_normal(), camray(), cylinder_normal(), engrid_cell(), light_normal(), newgrid(), newstri(), newtri(), and sphere_normal().
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.