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

Method rotate

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

Source from the content-addressed store, hash-verified

540}
541
542inline void Point2F::rotate( F32 radians )
543{
544 F32 sinTheta, cosTheta;
545 mSinCos( radians, sinTheta, cosTheta );
546
547 set( cosTheta * x - sinTheta * y,
548 sinTheta * x + cosTheta * y );
549}
550
551inline bool Point2F::operator==(const Point2F& _test) const
552{

Callers

nothing calls this directly

Calls 2

mSinCosFunction · 0.85
setFunction · 0.50

Tested by

no test coverage detected