Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
lampda::utils::vec2d Struct Reference

2d vector in any space More...

#include <vector_math.h>

Inheritance diagram for lampda::utils::vec2d:
lampda::utils::vec3d lampda::utils::vec4d

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.
 
vec2doperator= (const vec2d &other)
 Copy operator.
 

Public Attributes

float x
 x coordinate in 2D
 
float y
 y coordinate in 2D
 

Detailed Description

2d vector in any space


The documentation for this struct was generated from the following file: