|
Lamp-Da 0.1
A compact lantern project
|
2d vector in any space More...
#include <vector_math.h>
Public Member Functions | |
| vec2d () | |
| Default constructor. | |
| vec2d (const vec2d &other)=default | |
| Construct by copy. | |
| vec2d (const float _x, const float _y) | |
| Construct by parametersr. | |
| 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 | multiply (const float mult) const |
| Coefficient wise multiplication by a constant. | |
| vec2d | add (const vec2d &other) const |
| Coefficient wise addition. | |
| vec2d | add (const float mult) const |
| Coefficient wise addition by a constant. | |
| vec2d & | operator= (const vec2d &other) |
| Copy operator. | |
Public Attributes | |
| float | x |
| x coordinate in 2D | |
| float | y |
| y coordinate in 2D | |
2d vector in any space