Math

Modules

charge.math.color Source file for colors used in graphics.
charge.math.vector Source file for Vector3f.
charge.math.morton Source file for morton encoding code.
charge.math.point Source file for Point3f.
charge.math.average Source file for calculating a average over time.
charge.math Include everything from math.
charge.math.frustum Source file for Frustum and Plane.
charge.math.quat Source file for Quatf.
charge.math.matrix Source file for Matrix4x4d.

Structs

Vector3f Vector in a 3D space. Charge follows the OpenGL convetion for axis so Y+ is up, X+ is right and Z- is forward.
Vector3d Vector in a 3D space. Charge follows the OpenGL convetion for axis so Y+ is up, X+ is right and Z- is forward.
Point3f Point in 3D space.
Planef 3D Plane uses single precision.
Planed 3D Plane used by the Frustum struct, double precision.
Frustum Viewing frustum struct for use when doing Frustum culling in the rendering pipeline.
Fovf Fov angles to make a up projection matrix, angle semantics matches those of OpenXR.
Matrix3x3f Matrix 3x3!f32, used for normal transforms.
Matrix4x4f Matrix 4x4!f32, used to upload to OpenGL shaders.
Matrix3x3d Matrix 3x3!f64, used mostly to create normal matrices.
Matrix4x4d Matrix 4x4!f64, common handy matrix.