graphic_math.h

    Description:

    Defines mathematical operation functions and types, including trigonometric functions, two-dimensional vectors, three-dimensional vectors, and matrices.

    Since:

    1.0

    Version:

    1.0

    Description

    MATH_MAX(a, b)   ((a) > (b) ? (a) : (b))

    Larger of a and b.

    (a, b)   ((a) < (b) ? (a) : (b))

    Smaller of a and b.

    MATH_ABS(x)   ((x) > 0 ? (x) : (-(x)))

    Absolute value of x.

    (a, b)   ((a) < (b) ? ((b) - (a)) : ((a) - (b)))