vector: note the representation of polar angles
This commit is contained in:
parent
f6b1f47e23
commit
32e06e889e
@ -131,6 +131,8 @@ namespace cruft {
|
|||||||
|
|
||||||
|
|
||||||
// polar/cartesian conversions; assumes (mag, angle) form.
|
// polar/cartesian conversions; assumes (mag, angle) form.
|
||||||
|
//
|
||||||
|
// The angle is specified in radians.
|
||||||
template <typename T> vector<2,T> polar_to_cartesian (vector<2,T>);
|
template <typename T> vector<2,T> polar_to_cartesian (vector<2,T>);
|
||||||
template <typename T> vector<2,T> cartesian_to_polar (vector<2,T>);
|
template <typename T> vector<2,T> cartesian_to_polar (vector<2,T>);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user