MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / getRelativePosition

Method getRelativePosition

src/Core/Transform/Polygon.cpp:42–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 }
41
42 UnitVector PolygonPoint::getRelativePosition(RelativePositionFrom from) const
43 {
44 if (from == RelativePositionFrom::Point0)
45 return (*this - m_parent.get(0));
46 else
47 return (*this - m_parent.getCentroid());
48 }
49
50 void PolygonPoint::setRelativePosition(
51 RelativePositionFrom from, const Transform::UnitVector& position)

Callers

nothing calls this directly

Calls 2

getCentroidMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected