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

◆ Reflect() [2/2]

static Vector3 Microsoft.Xna.Framework.Vector3.Reflect ( Vector3 vector,
Vector3 normal )
inlinestatic

Definition at line 223 of file Vector3.cs.

224 {
225 float num = vector.X * normal.X + vector.Y * normal.Y + vector.Z * normal.Z;
226 Vector3 result = default(Vector3);
227 result.X = vector.X - 2f * num * normal.X;
228 result.Y = vector.Y - 2f * num * normal.Y;
229 result.Z = vector.Z - 2f * num * normal.Z;
230 return result;
231 }
Vector3(float x, float y, float z)
Definition Vector3.cs:66

References Microsoft.Xna.Framework.Vector3.X, Microsoft.Xna.Framework.Vector3.Y, and Microsoft.Xna.Framework.Vector3.Z.