Exemplo n.º 1
0
        public override bool Equals(object other)
        {
            if (!(other is FixedVector3))
            {
                return(false);
            }
            FixedVector3 vector3 = (FixedVector3)other;

            return(this.x.Equals(vector3.x) && this.y.Equals(vector3.y) && this.z.Equals(vector3.z));
        }
Exemplo n.º 2
0
        public bool IsApproximatelyEqual(object right)
        {
            var r = (right as PositionComponent);

            if (r.AlwaysEqual || AlwaysEqual)
            {
                return(true);
            }
            return(CompareUtility.IsApproximatelyEqual(FixedVector3.WorldVector3(), r.FixedVector3.WorldVector3()));
        }
Exemplo n.º 3
0
 protected bool Equals(PositionComponent other)
 {
     return(FixedVector3.Equals(other.FixedVector3));
 }