-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent usage of distance functions on incompatible types
Types indicating differences or derivatives of unit vectors and unit quaternions are needed to handle values with the same dimensionality as the original types, but no constraints. The two enum also need to be handled explicitly in a switch statement to compile without warnings. However, it is better if the corresponding code raises an error, instead of computing something that has no consistent definition.
- Loading branch information
1 parent
ad3fc33
commit 3ec0e02
Showing
1 changed file
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters