MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / getPerpendicular

Method getPerpendicular

Engine/source/math/mPoint2.h:152–152  ·  view source on GitHub ↗

Return a perpendicular vector to this one. The result is equivalent to rotating the vector 90 degrees clockwise around the origin.

Source from the content-addressed store, hash-verified

150 /// Return a perpendicular vector to this one. The result is equivalent to rotating the
151 /// vector 90 degrees clockwise around the origin.
152 Point2F getPerpendicular() const { return Point2F( y, - x ); }
153
154 //-------------------------------------- Overloaded operators
155 public:

Callers

nothing calls this directly

Calls 1

Point2FClass · 0.70

Tested by

no test coverage detected