MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / vectorRotateZAxis

Function vectorRotateZAxis

Engine/source/math/mathUtils.cpp:154–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152//-----------------------------------------------------------------------------
153
154void vectorRotateZAxis( Point3F &vector, F32 radians )
155{
156 F32 sin, cos;
157 mSinCos(radians, sin, cos);
158 F32 x = cos * vector.x - sin * vector.y;
159 F32 y = sin * vector.x + cos * vector.y;
160 vector.x = x;
161 vector.y = y;
162}
163
164void vectorRotateZAxis( F32 radians, Point3F *vectors, U32 count )
165{

Callers 3

prepRenderMethod · 0.85
onRender2DMethod · 0.85
_renderOutlineMethod · 0.85

Calls 1

mSinCosFunction · 0.85

Tested by

no test coverage detected