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

Method flip

src/Core/Transform/Referential.cpp:56–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 }
55
56 Referential Referential::flip(FlipAxis axis) const
57 {
58 const bool bothOrHorizontal
59 = (axis == FlipAxis::Both || axis == FlipAxis::Horizontal);
60 const bool bothOrVertical
61 = (axis == FlipAxis::Both || axis == FlipAxis::Vertical);
62 return Referential(
63 bothOrHorizontal ? 1 - m_refX : m_refX, bothOrVertical ? 1 - m_refY : m_refY);
64 }
65
66 bool Referential::isOnLeftSide() const
67 {

Callers 6

LoadClassReferentialFunction · 0.80
moveToMethod · 0.80
setPointPositionMethod · 0.80
operator~Method · 0.80
FlagSetClass · 0.80

Calls 1

ReferentialClass · 0.85

Tested by

no test coverage detected