Math Lingo Snippets
From Director Online Wiki
Error creating thumbnail: Unable to save thumbnail to destination
This is a collection of useful Math functions. They are formatted as movie scripts, so, if you want to use them you only have to paste the script text on a movie script, and they will extend the lingo in your movie. Of course, if you don't like global handlers, you can always add a "me" and use them as you feel.
Normally they will have no dependencies, but occasionally they can depend on some other function that will also be published here. On those cases, the related function should be linked.
Contents
Vectors
- Orthogonal projection of a vector over a plane
- Rotate one vector around another a certain angle
- Assorted 2D vector functions
- Clamp Vector
Functions
- asin
- acos
- ceil
- floor
- limit
- Is power of two
- Nearest up power of two
- Nearest Down power of two
- Fibonacci number
- Collatz Conjecture
- Greatest common divisor
- TriBool
- Solutions of a quadratic equation
- Point of intersection between 2 lines
- Distance between two points