![]() |
TinySpline
0.7.0
Spline Library for a Multitude of Programming Languages
|
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 |