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

Function SizeApplyAffineTransform

core/math/AffineTransform.cpp:64–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64Vec2 SizeApplyAffineTransform(const Vec2& size, const AffineTransform& t)
65{
66 Vec2 s;
67 s.width = (float)((double)t.a * size.width + (double)t.c * size.height);
68 s.height = (float)((double)t.b * size.width + (double)t.d * size.height);
69 return s;
70}
71
72AffineTransform AffineTransformMakeIdentity()
73{

Callers 1

setupMethod · 0.85

Calls

no outgoing calls

Tested by 1

setupMethod · 0.68