FerruX Projection Matrix
Tool to ease the generation of perspective projection matrices to convert 3D vectors into their 2D projection.
Building the matrix
To build the matrix just create a new Builder and set the properties that will define the projection matrix:
near
: Position of the near clip in the z-axis. By default0.0
.far
: Position of the far clip in the z-axis. By default1000.0
.fov
: Field of view in degrees. By default90.0
.width
: Frame width. By default1280
.height
: Frame height. By default720
.
let matrix = new
.set_width
.set_height
.set_fov
.set_far
.set_near
.build;
println!;