MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / Transform

Function Transform

engine/Poseidon/Graphics/Shadow/ShadowMath.cpp:130–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130Vec4 Transform(const Mat4& a, const Vec4& v)
131{
132 Vec4 r;
133 r.x = a.at(0, 0) * v.x + a.at(0, 1) * v.y + a.at(0, 2) * v.z + a.at(0, 3) * v.w;
134 r.y = a.at(1, 0) * v.x + a.at(1, 1) * v.y + a.at(1, 2) * v.z + a.at(1, 3) * v.w;
135 r.z = a.at(2, 0) * v.x + a.at(2, 1) * v.y + a.at(2, 2) * v.z + a.at(2, 3) * v.w;
136 r.w = a.at(3, 0) * v.x + a.at(3, 1) * v.y + a.at(3, 2) * v.z + a.at(3, 3) * v.w;
137 return r;
138}
139
140Vec3 TransformPoint(const Mat4& a, const Vec3& p)
141{

Callers 15

OrientationSurfaceMethod · 0.85
ApplyForcesMethod · 0.85
SerializeMethod · 0.85
WorldTransformMethod · 0.85
ProxyWorldTransformMethod · 0.85
ApplyMethod · 0.85
RotateMethod · 0.85
Thing.cppFile · 0.85
SimulateMethod · 0.85
InitSkewMethod · 0.85
AnimateMethod · 0.85

Calls 1

atMethod · 0.80

Tested by

no test coverage detected