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

◆ Equals() [2/3]

bool Microsoft.Xna.Framework.Ray.Equals ( Ray other)
inline

Definition at line 25 of file Ray.cs.

26 {
27 if (Position.X == other.Position.X && Position.Y == other.Position.Y && Position.Z == other.Position.Z && Direction.X == other.Direction.X && Direction.Y == other.Direction.Y)
28 {
29 return Direction.Z == other.Direction.Z;
30 }
31 return false;
32 }

References Microsoft.Xna.Framework.Ray.Direction, System.other, Microsoft.Xna.Framework.Vector3.X, and Microsoft.Xna.Framework.Vector3.Y.

Referenced by Microsoft.Xna.Framework.Ray.Equals().