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)); }
public bool IsApproximatelyEqual(object right) { var r = (right as PositionComponent); if (r.AlwaysEqual || AlwaysEqual) { return(true); } return(CompareUtility.IsApproximatelyEqual(FixedVector3.WorldVector3(), r.FixedVector3.WorldVector3())); }
protected bool Equals(PositionComponent other) { return(FixedVector3.Equals(other.FixedVector3)); }