Programming API Reference: EduGraf.Tensors
Struct public readonly Matrix4
This represents a matrix in 4d homogeneous space.Property public float
[
] Elements { get; }: see interface propertyConstructor()
Create a matrix with 16 elements.- public static readonly
Matrix4
Identity Method public static Matrix4
Scale()
Create a new transformation matrix scaling in all axis directions by the same factor.Method public static Matrix4
Scale()
Create a new transformation matrix scaling by varying factors in the different axis directions.Method public static Matrix4
Scale()
Create a new scaling matrix from a vector.Method public static Matrix4
Translation()
Create a new transformation matrix representing translation by a vector.Method public static Matrix4
RotationX()
Create a new transformation matrix representing rotation around the x-axis.Method public static Matrix4
RotationY()
Create a new transformation matrix representing rotation around the y-axis.Method public static Matrix4
RotationZ()
Create a new transformation matrix representing rotation around the z-axis.Operator public static Matrix4
*()
Operator public static Vector4
*()
Operator public static Matrix4
*()
Indexer public float
this[] { get; set; }Property public Lazy
<Matrix4
> Transposed { get; }: of this matrixMethod public static Matrix4
GetView()
Returns the matrix corresponding to the given view.Method public static Matrix4
GetOrthographicProjection()
Returns the orthographic projection-matrix.float
widthfloat
heightfloat
nearfloat
far
Method public static Matrix4
GetPerspectiveProjection()
Returns the perspective projection-matrix.float
fovYfloat
aspectfloat
nearfloat
far
Method public static Point3
GetProjectionCenter()
Returns the intersection of the plane with the ray staring from the camera with direction n.Method public static Matrix4
GetOffCenterProjection()
Returns the perspective projection-matrix in case the camera view is not orthogonal and centered with respect to the projection plane.