graphic_math.h

    Graphic

    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

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

    Larger of a and b.

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

    Smaller of a and b.

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

    Absolute value of x.

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