27#ifndef math_point2D_hpp
28#define math_point2D_hpp
40template <
typename _angleT>
46 typedef typename angleT::realT realT;
96template <
typename angleT>
101template <
typename angleT>
106template <
typename angleT>
112template <
typename angleT>
120template <
typename angleT>
123 realT c =
cos(
ang * angleT::radians );
124 realT
s =
sin(
ang * angleT::radians );
126 return rotate( c,
s );
129template <
typename angleT>
132 realT c =
cos(
ang * angleT::radians );
133 realT
s =
sin(
ang * angleT::radians );
135 return rotateInPlace( c,
s );
138template <
typename angleT>
149template <
typename angleT>
152 realT
tx = x * c - y *
s;
153 realT
ty = x *
s + y * c;
A point in 2-dimensional space.
void rotateInPlace(realT ang)
Rotate the point about the origin by a given angle.
point2D rotate(realT ang)
Rotate the point about the origin by a given angle.
constexpr floatT six_fifths()
Return 6/5 in the specified precision.