crertel / graphmath

An Elixir library for performing 2D and 3D mathematics.
The Unlicense
79 stars 14 forks source link

Add identity/0 and equals/2 and equals/3 functions #21

Closed crertel closed 5 years ago

crertel commented 5 years ago

We need a way of creating the identity quaternion and also comparing that two quaternions are in fact equivalent.

crertel commented 5 years ago

Added this, went ahead and added zero/0, and then decided to add both orientation and normal variants of equality along with an optional threshold mode.