RotationAngles Update


#1

I pushed a PR for RotationAngles to add some missing quality of life operands.

I did some basic unit testing in the repl as well:

!assert : (Boolean cond, String message) [if not cond[println("FAILED: " + message)] ]

assert(RotationAngles!yaw_pitch_roll(0 0 0) = RotationAngles!yaw_pitch_roll(0 0 0), "=")
assert(RotationAngles!yaw_pitch_roll(1 0 0) ~= RotationAngles!yaw_pitch_roll(0 0 1), "~=")
assert(RotationAngles!yaw_pitch_roll(27.3 270.4 -132.0) = RotationAngles!yaw_pitch_roll(27.3 270.4 -132.0), "=")
assert([RotationAngles!yaw_pitch_roll(0 0 0) += RotationAngles!yaw_pitch_roll(1 0 0)] = RotationAngles!yaw_pitch_roll(1 0 0), "+=")
assert([RotationAngles!yaw_pitch_roll(1 0 0) + RotationAngles!yaw_pitch_roll(1 0 0)] = RotationAngles!yaw_pitch_roll(2 0 0), "+")
assert([RotationAngles!yaw_pitch_roll(1 0 0) * 5] = RotationAngles!yaw_pitch_roll(5 0 0), "*")
assert([RotationAngles!yaw_pitch_roll(1 0 0) *= 5] = RotationAngles!yaw_pitch_roll(5 0 0), "*=")
assert([-RotationAngles!yaw_pitch_roll(25 25 25)] = RotationAngles!yaw_pitch_roll(-25 -25 -25), "negate")
assert([RotationAngles!yaw_pitch_roll(1 1 1) - RotationAngles!yaw_pitch_roll(1 1 1)] = RotationAngles!yaw_pitch_roll(0 0 0), "-")
assert([RotationAngles!yaw_pitch_roll(1 1 1) -= RotationAngles!yaw_pitch_roll(1 1 1)] = RotationAngles!yaw_pitch_roll(0 0 0), "-=")
assert(RotationAngles!yaw_pitch_roll(0 0 45).Vector3 = Vector3!xyz(1 0 0), "Vector3")

#2

Thanks Zach! We’ll integrate this asap.