gfx.math

Gfx-d mathematics package

Modules

approx
module gfx.math.approx

This module is about comparison of floating point arithmetics. Supported by this very informative article: https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/

inverse
module gfx.math.inverse

Matrix determinant and inverse

mat
module gfx.math.mat

Matrix linear algebra module

proj
module gfx.math.proj

NDC agnostic projection matrices. Each projection can be parameterized with a NDC configuration. NDC defines how the clip space will translate to screen coordinates. Note that after transformation by a projection matrix, X, Y and Z vertex coordinates must be divided by W to obtain coordinates in final NDC space. NDC has two components (XYClip and ZClip) that will affect how the coordinates are transformed in the final normalized clipping space. XYClip affects only X and Y (X always to the right, Y either upwards or downwards for leftHanded and rightHanded respectively), and ZClip affects Z depth range.

transform
module gfx.math.transform

Affine transforms module

util
module gfx.math.util

Some transform utilities

vec
module gfx.math.vec

Vector linear algebra module

Public Imports

gfx.math.inverse
public import gfx.math.inverse;
gfx.math.mat
public import gfx.math.mat;
gfx.math.proj
public import gfx.math.proj;
gfx.math.transform
public import gfx.math.transform;
gfx.math.util
public import gfx.math.util;
gfx.math.vec
public import gfx.math.vec;

Meta