|
Lamp-Da 0.1
A compact lantern project
|
3d vector in any space More...
#include <vector_math.h>
Public Member Functions | |
| vec3d () | |
| Default constructor. | |
| vec3d (const float _x, const float _y, const float _z) | |
| Construct by parameters. | |
| vec3d (const vec2d &res, const float _z) | |
| Construct by 2D vector and parameter. | |
| float | dot (const vec3d &other) const |
| Dot product in 3D, representing the arcos of the angle between this vector and another. | |
| vec3d | multiply (const vec3d &other) const |
| Coefficient wise multiplication. | |
| vec3d | multiply (const float mult) const |
| Coefficient wise multiplication by a constant. | |
| vec3d | add (const vec3d &other) const |
| Coefficient wise addition. | |
| vec3d | add (const float mult) const |
| Coefficient wise addition by a constant. | |
| vec3d & | operator= (const vec3d &other) |
| Copy operator. | |
| float | dot (const vec2d &other) const |
| Dot product in 2D, representing the arcos of the angle between this vector and another. | |
| vec2d | multiply (const vec2d &other) const |
| Coefficient wise multiplication. | |
| vec2d | add (const vec2d &other) const |
| Coefficient wise addition. | |
Public Attributes | |
| float | z |
| z coordinate of a 3D vector | |
| float | x |
| x coordinate in 2D | |
| float | y |
| y coordinate in 2D | |
3d vector in any space