Beispiel #1
0
 /// <summary>
 /// Returns true if the two rotations are equivalent.
 /// </summary>
 /// <param name="other">The other rotation to compare against.</param>
 /// <returns>true if the two rotations are equivalent.</returns>
 public bool equals(Rotation other)
 {
     return other.Yaw == yaw && other.Pitch == pitch && other.Tilt == tilt;
 }
Beispiel #2
0
 /// <summary>
 /// Sets the rotation to the same values as the other given rotation.
 /// </summary>
 /// <param name="other"></param>
 public void set(Rotation other)
 {
     yaw = other.Yaw;
     pitch = other.Pitch;
     tilt = other.Tilt;
 }
Beispiel #3
0
 /// <summary>
 /// Creates a new rotation object by cloning another.
 /// </summary>
 /// <param name="other"></param>
 public Rotation(Rotation other)
 {
     yaw = other.Yaw;
     pitch = other.Pitch;
     tilt = other.Tilt;
 }