Class GLMatrixes
- Namespace
- SearchAThing.OpenGL.Core
- Assembly
- netcore-opengl-core.dll
Helper class to store model/view/projection and camera pos/target/up in a single object.
public class GLMatrixes
- Inheritance
-
GLMatrixes
- Inherited Members
Constructors
GLMatrixes(in Matrix4x4, in Matrix4x4, in Matrix4x4, in Vector3, in Vector3, in Vector3)
Constructor.
public GLMatrixes(in Matrix4x4 mm, in Matrix4x4 vm, in Matrix4x4 pm, in Vector3 cp, in Vector3 ct, in Vector3 cu)
Parameters
mm
Matrix4x4Model matrix [local].
vm
Matrix4x4View matrix [world].
pm
Matrix4x4Projection matrix [eye].
cp
Vector3Camera position [world].
ct
Vector3Camera target [world].
cu
Vector3Camera up [world].
Properties
cp
Camera position [world].
public Vector3 cp { get; }
Property Value
ct
Camera target [world].
public Vector3 ct { get; }
Property Value
cu
Camera up [world].
public Vector3 cu { get; }
Property Value
mm
Model matrix [local].
public Matrix4x4 mm { get; }
Property Value
pm
Projection matrix [eye].
public Matrix4x4 pm { get; }
Property Value
vm
View matrix [world].
public Matrix4x4 vm { get; }