pmmp / Math

PHP library containing math related code used in PocketMine-MP
GNU Lesser General Public License v3.0
41 stars 20 forks source link

Facing::rotate(): Accept facing on the same axis as given #65

Open dktapps opened 2 years ago

dktapps commented 2 years ago

Rotating Facing::UP or Facing::DOWN around the Axis::Y could just return the facing unchanged, instead of throwing an exception, and this would be valid.

Rotating an axis around itself does not change the positions of the ends of any line segment taken from it.