Beispiel #1
0
        public override bool Equals(object obj)
        {
            if (obj is Angle value)
            {
                return(Equals(value));
            }

            return(Radians.Equals(obj));
        }
Beispiel #2
0
        public bool Equals(float value, AngleType angleType)
        {
            switch (angleType)
            {
            case AngleType.Degree:
                return(Degrees.Equals(value));

            case AngleType.Gradian:
                return(Gradians.Equals(value));

            case AngleType.Radian:
                return(Radians.Equals(value));

            case AngleType.Turn:
                return(Turn.Equals(value));

            default:
                return(false);
            }
        }
Beispiel #3
0
 public bool Equals(Angle other)
 {
     WrapPositive();
     other.WrapPositive();
     return(Radians.Equals(other.Radians));
 }
Beispiel #4
0
 public bool Equals(Angle other)
 {
     return(Radians.Equals(other.Radians));
 }
Beispiel #5
0
 public bool Equals(RadianAngle other) =>
 Radians.Equals(other.Radians);