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

◆ Reflect() [1/2]

static void Microsoft.Xna.Framework.Vector3.Reflect ( ref Vector3 vector,
ref Vector3 normal,
out Vector3 result )
inlinestatic

Definition at line 233 of file Vector3.cs.

234 {
235 float num = vector.X * normal.X + vector.Y * normal.Y + vector.Z * normal.Z;
236 result.X = vector.X - 2f * num * normal.X;
237 result.Y = vector.Y - 2f * num * normal.Y;
238 result.Z = vector.Z - 2f * num * normal.Z;
239 }