| 48 | } |
| 49 | |
| 50 | void PolygonPoint::setRelativePosition( |
| 51 | RelativePositionFrom from, const Transform::UnitVector& position) |
| 52 | { |
| 53 | if (from == RelativePositionFrom::Point0) |
| 54 | this->set(position.to<Transform::Units::SceneUnits>() + m_parent.get(0)); |
| 55 | else if (from == RelativePositionFrom::Centroid) |
| 56 | { |
| 57 | const Transform::UnitVector centroid = m_parent.getCentroid(); |
| 58 | this->set(position.to<Transform::Units::SceneUnits>() + centroid); |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | void PolygonPoint::move(const Transform::UnitVector& position) |
| 63 | { |
nothing calls this directly
no test coverage detected