2D (x,y) point structure - Double More...
#include <point.h>
Public Member Functions | |
Pointd () | |
Pointd (double x, double y) | |
Pointd (const Pointx< double > &p) | |
Pointd (const Vec2< double > &p) | |
![]() | |
Pointx () | |
Pointx (double x, double y) | |
Pointx (const Pointx< double > &p) | |
Pointx (const Vec2< double > &p) | |
![]() | |
Vec2 () | |
Vec2 (const double &scalar) | |
Vec2 (const Vec3< double > ©) | |
Vec2 (const Vec4< double > ©) | |
Vec2 (const double &p1, const double &p2) | |
Vec2 (const double *array_xy) | |
Vec2 (const Vec2< double > ©) | |
Vec2 (const Vec2< float > ©) | |
Vec2 (const Vec2< int > ©) | |
double | angle (const Vec2< double > &vector) const |
Calculate the angle between this vector and an other vector. More... | |
double | angle_line (const Vec2< double > &point) const |
Calculate the angle of the line joining this point and other point. More... | |
double | angle_normed (const Vec2< double > &vector) const |
Calculate the angle between this vector and an other vector, where the vectors are unit vectors. More... | |
double | distance (const Vec2< double > &vector) const |
Calculate the distance between this vector and an other vector. More... | |
double | dot (const Vec2< double > &vector) const |
Dot products this vector with an other vector. More... | |
bool | is_equal (const Vec2< double > &other, double epsilon) const |
Returns true if equal within the bounds of an epsilon. More... | |
double | length () const |
Returns the length (magnitude) of this vector. More... | |
Vec2< double > & | normalize () |
Normalizes this vector. More... | |
bool | operator!= (const Vec2< double > &vector) const |
!= operator. More... | |
void | operator*= (const Vec2< double > &vector) |
*= operator. More... | |
void | operator*= (double value) |
*= operator. More... | |
void | operator+= (const Vec2< double > &vector) |
+= operator. More... | |
void | operator+= (double value) |
+= operator. More... | |
Vec2< double > | operator- () const |
| |
void | operator-= (const Vec2< double > &vector) |
-= operator. More... | |
void | operator-= (double value) |
-= operator. More... | |
void | operator/= (const Vec2< double > &vector) |
/= operator. More... | |
void | operator/= (double value) |
/= operator. More... | |
bool | operator< (const Vec2< double > &vector) const |
< operator. More... | |
Vec2< double > & | operator= (const Vec2< double > &vector) |
= operator. More... | |
bool | operator== (const Vec2< double > &vector) const |
== operator. More... | |
Vec2< double > & | rotate (const Vec2< double > &hotspot, double angle) |
Rotate this vector around another point. More... | |
Vec2< double > & | round () |
Rounds all components of this vector. More... | |
double | round_value (float value) const |
Rounds a value for the datatype. More... | |
Additional Inherited Members | |
![]() | |
typedef double | datatype |
![]() | |
static Pointx< double > | calc_origin (Origin origin, const Sizex< double > &size) |
Returns the anchor point for the origin within the dimensions of the size structure. More... | |
static double | dot (const Vec2< double > &vector_1, const Vec2< double > &vector_2) |
Dot products a vector with an other vector. More... | |
static bool | is_equal (const Vec2< double > &first, const Vec2< double > &second, double epsilon) |
Returns true if equal within the bounds of an epsilon. More... | |
static Vec2< double > | normalize (const Vec2< double > &vector) |
Normalizes a vector. More... | |
static Vec2< double > | rotate (const Vec2< double > &vector, const Vec2< double > &hotspot, double angle) |
Rotate a vector around another point. More... | |
static Vec2< double > | round (const Vec2< double > &vector) |
Rounds all components on a vector. More... | |
![]() | |
double | x |
double | y |
2D (x,y) point structure - Double
|
inline |
|
inline |
|
inline |
|
inline |