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