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

Function PointApplyAffineTransform

core/math/AffineTransform.cpp:49–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49Vec2 PointApplyAffineTransform(const Vec2& point, const AffineTransform& t)
50{
51 Vec2 p;
52 p.x = (float)((double)t.a * point.x + (double)t.c * point.y + t.tx);
53 p.y = (float)((double)t.b * point.x + (double)t.d * point.y + t.ty);
54 return p;
55}
56
57Vec2 PointApplyTransform(const Vec2& point, const Mat4& transform)
58{

Callers 6

RectApplyAffineTransformFunction · 0.85
initMethod · 0.85
onTouchesBeganMethod · 0.85
onTouchesMovedMethod · 0.85
onTouchesEndedMethod · 0.85
matrixToNodeMethod · 0.85

Calls

no outgoing calls

Tested by 4

initMethod · 0.68
onTouchesBeganMethod · 0.68
onTouchesMovedMethod · 0.68
onTouchesEndedMethod · 0.68