Skip to content

simonjwright/Quaternions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quaternions

For information on quaternions, see the Wikipedia page.

This library supports standard operations:

  • addition,
  • subtraction,
  • multiplication (by a real or by another quaternion, the second of which gives the Hamilton product), and
  • division (by a real)).

It also provides conjugation, the norm, and normalization (to a unit quaternion).

It's supplied as

  • a generic, to be instantiated with the floating-point type of your choice, and
  • an instantiantion using the standard Float.

The implementation uses Ada 2012 expression functions.

For GNAT, build by gprbuild -P quaternions.gpr.

About

An Ada library to support using quaternions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages