TinySpline  0.7.0
Spline Library for a Multitude of Programming Languages
List of all members
tinyspline::Vec2 Class Reference

Public Member Functions

Vec2
 Vec2 ()
 
 Vec2 (real x, real y)
 
Vec2 operator+ (const Vec2 &other)
 
Vec2 operator- (const Vec2 &other)
 
Vec2 operator* (real scalar)
 
real x () const
 
void setX (real val)
 
real y () const
 
void setY (real val)
 
std::vector< real > values () const
 
Vec2 add (const Vec2 &other) const
 
Vec2 subtract (const Vec2 &other) const
 
Vec2 multiply (real scalar) const
 
Vec2 normalize () const
 
real magnitude () const
 
real dot (const Vec2 &other) const
 
real angle (const Vec2 &other) const
 
real distance (const Vec2 &other) const
 
std::string toString () const
 

The documentation for this class was generated from the following files: