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

Method ConvertTo

libs/geometry/any_rect2d.hpp:125–130  ·  view source on GitHub ↗

Convert into coordinate system of this AnyRect

Source from the content-addressed store, hash-verified

123
124 /// Convert into coordinate system of this AnyRect
125 Point<T> ConvertTo(Point<T> const & p) const
126 {
127 Point<T> i1(1, 0);
128 Point<T> j1(0, 1);
129 return Convert(p - Convert(m_zero, i(), j(), i1, j1), i1, j1, i(), j());
130 }
131
132 void ConvertTo(Corners & pts) const
133 {

Callers 1

UNIT_TESTFunction · 0.80

Calls 1

ConvertFunction · 0.50

Tested by 1

UNIT_TESTFunction · 0.64