2D (x,y) point structure - Double More...
#include <point.h>
Inheritance diagram for clan::Pointd:Public Member Functions | |
| Pointd () | |
| Pointd (const Pointx< double > &p) | |
| Pointd (const Vec2< double > &p) | |
| Pointd (double x, double y) | |
Public Member Functions inherited from clan::Pointx< double > | |
| Pointx () | |
| Pointx (const Pointx< double > &p) | |
| Pointx (const Vec2< double > &p) | |
| Pointx (double x, double y) | |
Public Member Functions inherited from clan::Vec2< double > | |
| Vec2 () | |
| Vec2 (const double &p1, const double &p2) | |
| Vec2 (const double &scalar) | |
| Vec2 (const double *array_xy) | |
| Vec2 (const Vec2< double > ©) | |
| Vec2 (const Vec2< double > ©) | |
| Vec2 (const Vec2< double > ©) | |
| Vec2 (const Vec2< double > ©) | |
| Vec2 (const Vec2< double > ©) | |
| Vec2 (const Vec2< double > ©) | |
| Vec2 (const Vec2< double > ©) | |
| Vec2 (const Vec2< double > ©) | |
| Vec2 (const Vec2< double > ©) | |
| Vec2 (const Vec2< float > ©) | |
| Vec2 (const Vec2< float > ©) | |
| Vec2 (const Vec2< float > ©) | |
| Vec2 (const Vec2< float > ©) | |
| Vec2 (const Vec2< float > ©) | |
| Vec2 (const Vec2< float > ©) | |
| Vec2 (const Vec2< float > ©) | |
| Vec2 (const Vec2< float > ©) | |
| Vec2 (const Vec2< float > ©) | |
| Vec2 (const Vec2< int > ©) | |
| Vec2 (const Vec2< int > ©) | |
| Vec2 (const Vec2< int > ©) | |
| Vec2 (const Vec2< int > ©) | |
| Vec2 (const Vec2< int > ©) | |
| Vec2 (const Vec2< int > ©) | |
| Vec2 (const Vec2< int > ©) | |
| Vec2 (const Vec2< int > ©) | |
| Vec2 (const Vec2< int > ©) | |
| Vec2 (const Vec3< double > ©) | |
| Vec2 (const Vec4< double > ©) | |
| double | length () const |
| float | length () const |
| Vec2< double > & | normalize () |
| Normalizes this vector. More... | |
| double | dot (const Vec2< double > &vector) const |
| Dot products this vector with an other vector. More... | |
| Vec2< double > & | round () |
| Rounds all components of this vector. More... | |
| Vec2< double > & | rotate (const Vec2< double > &hotspot, const Angle &angle) |
| Rotate this vector around another point. 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... | |
| Angle | angle (const Vec2< double > &vector) const |
| Calculate the angle between this vector and an other vector. More... | |
| Angle | angle_normed (const Vec2< double > &vector) const |
| Calculate the angle between this vector and an other vector, where the vectors are unit vectors. More... | |
| Angle | angle_line (const Vec2< double > &point) const |
| Calculate the angle of the line joining this point and other point. More... | |
| double | distance (const Vec2< double > &vector) const |
| Calculate the distance between this vector and an other vector. More... | |
| double | round_value (float value) const |
| Rounds a value for the datatype. 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... | |
| Vec2< double > & | operator= (const Vec2< double > &vector) |
| = operator. More... | |
| bool | operator== (const Vec2< double > &vector) const |
| == operator. More... | |
| bool | operator!= (const Vec2< double > &vector) const |
| != operator. More... | |
| bool | operator< (const Vec2< double > &vector) const |
| < operator. More... | |
Additional Inherited Members | |
Public Types inherited from clan::Vec2< double > | |
| typedef double | datatype |
Static Public Member Functions inherited from clan::Vec2< double > | |
| 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, const Angle &angle) |
| Rotate a vector around another point. More... | |
| static Vec2< double > | round (const Vec2< double > &vector) |
| Rounds all components on a vector. More... | |
Public Attributes inherited from clan::Vec2< double > | |
| union { | |
| Type clan::Vec2< Type >::r | |
| Type clan::Vec2< Type >::s | |
| Type clan::Vec2< Type >::x | |
| }; | |
| union { | |
| Type clan::Vec2< Type >::g | |
| Type clan::Vec2< Type >::t | |
| Type clan::Vec2< Type >::y | |
| }; | |
| double | g |
| double | r |
| double | s |
| double | t |
| double | x |
| double | y |
2D (x,y) point structure - Double