MCPcopy Create free account
hub / github.com/comaps/comaps / SetAngle

Method SetAngle

libs/geometry/any_rect2d.hpp:53–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 Point<T> j() const { return Point<T>(-m_angle.sin(), m_angle.cos()); }
52
53 void SetAngle(ang::Angle<T> const & a)
54 {
55 Point<T> glbZero = GlobalZero();
56
57 m_angle = a;
58 m_zero = Convert(glbZero, Point<T>(1, 0), Point<T>(0, 1), i(), j());
59 }
60
61 ang::Angle<T> const & Angle() const { return m_angle; }
62

Callers

nothing calls this directly

Calls 1

ConvertFunction · 0.50

Tested by

no test coverage detected