Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ TransformNormal() [2/4]

static Vector2 Microsoft.Xna.Framework.Vector2.TransformNormal ( Vector2 normal,
Matrix matrix )
inlinestatic

Definition at line 335 of file Vector2.cs.

336 {
337 float x = normal.X * matrix.M11 + normal.Y * matrix.M21;
338 float y = normal.X * matrix.M12 + normal.Y * matrix.M22;
339 Vector2 result = default(Vector2);
340 result.X = x;
341 result.Y = y;
342 return result;
343 }
Vector2(float x, float y)
Definition Vector2.cs:35

References Microsoft.Xna.Framework.Matrix.M21, and Microsoft.Xna.Framework.Matrix.M22.