Module rasterize::utils[][src]

Utility functions and types used accross the library

Structs

ArrayIter

Fixed sized iterator

M3x3

Square 3x3 matrix

M4x4

Sqaure 4x4 matrix

Constants

QUADRATURE_4
QUADRATURE_8
QUADRATURE_16
QUADRATURE_32

Functions

clamp

Restrict value to a certain interval

cubic_solve

Solve cubic equation a * t ^ 3 + b * t ^ 2 + c * t + d = 0 for t Reference: https://www.trans4mind.com/personal_development/mathematics/polynomials/cubicAlgebra.htm

integrate_quadrature

Find an integral of a function f on an interval from x0 to x1 using Legendre-Gauss quadrature method.

quadratic_solve

Solve quadratic equation a * t ^ 2 + b * t + c = 0 for t