Glimmr Canvas Animation

version 1/111030 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Shortcuts for fixed point maths
    [The doubled symbols are used when we need to perform an operation on one number and one "real number" or two "real numbers"; we must use standard symbols to operate on two numbers. The use of the doubled symbols improves readability with easing equations, which often need to use fractional values.]

    To decide which real number is (A - value) ++ (B - value):
        decide on A real plus B.
        
    To decide which real number is (A - value) -- (B - value):
        decide on A real minus B.
        
    To decide which real number is (A - value) ** (B - a value):
        decide on A real times B.
        
    To decide which real number is (A - value) // (B - a value):
        decide on A real divided by B.
        
    To decide whether (A - a value) << (B - a value):
        if A is real less than B, decide yes.

    To decide whether (A - a value) >> (B - a value):
        if A is real greater than B, decide yes.
        
    To decide which real number is (A - value) ^^ (B - value):
        decide on A to the power B.

    To decide which real number is sqrt (A - a value):
        decide on the real square root of A.