/// <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; }
/// <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; }
/// <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; }