Trigonometric Integer Math Library

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Request group membership
By: Kwabena W. Agyeman, created: 2013-04-17 | updated: 2018-08-06

A trigonometric integer math library. The code has been fully optimized with a super simple spin interface for maximum speed and is also fully commented.

Provides full support for:

  • Taking the SIN of an angle (0-360),
  • Taking the COS of an angle (0-360),
  • Taking the TAN of an angle (0-360),
  • Finding the ARCSIN of a triangle,
  • Finding the ARCCOS of a triangle,
  • Finding the ARCTAN of a triangle,
  • Preforming the ATAN2 calculation,
  • Preforming the DISTANCE calculation,
  • Calculating integer powers,
  • Calculating random numbers,

 

Original File Upload
AttachmentSize
Binary Data SL32_INTEngine_2.spin84.84 KB

Comments

[originally posted by Anonymous on 2011-03-12 01:21:13] I tested atan2 for an hexapod... it is 4 times slower than float32full...

[originally posted by Kwabena W. Agyeman on 2011-07-30 03:20:28] It's in SPIN. It saves you a cog.