MCPcopy Create free account
hub / github.com/axmolengine/axmol / AffineTransformRotate

Function AffineTransformRotate

core/math/AffineTransform.cpp:134–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134AffineTransform AffineTransformRotate(const AffineTransform& t, float anAngle)
135{
136 float sine = sinf(anAngle);
137 float cosine = cosf(anAngle);
138
139 return AffineTransformMake(t.a * cosine + t.c * sine, t.b * cosine + t.d * sine, t.c * cosine - t.a * sine,
140 t.d * cosine - t.b * sine, t.tx, t.ty);
141}
142
143/* Concatenate `t2' to `t1' and return the result:
144 t' = t1 * t2 */

Callers

nothing calls this directly

Calls 1

AffineTransformMakeFunction · 0.85

Tested by

no test coverage detected