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

3d vector in any space More...

#include <vector_math.h>

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

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.
 
vec3doperator= (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
 

Detailed Description

3d vector in any space


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