Skip to content

Instantly share code, notes, and snippets.

@Klaim
Created January 9, 2014 22:56
Show Gist options
  • Save Klaim/8343687 to your computer and use it in GitHub Desktop.
Save Klaim/8343687 to your computer and use it in GitHub Desktop.
bool orientationEquals( Quaternion a, Quaternion b)
{
a.normalize(); b.normalize();
return a.xAxis().positionEquals( b.xAxis() )
&& a.yAxis().positionEquals( b.yAxis() )
&& a.yAxis().positionEquals( b.yAxis() )
;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment