Class Matrix
- Namespace
- Graphene
- Assembly
- Graphene-1.0.dll
public sealed class Matrix : BoxedRecord, IEquatable<Matrix>
- Inheritance
-
Matrix
- Implements
- Inherited Members
Constructors
Matrix()
public Matrix()
Matrix(MatrixOwnedHandle)
public Matrix(MatrixOwnedHandle handle)
Parameters
handle
MatrixOwnedHandle
Properties
Handle
public MatrixOwnedHandle Handle { get; }
Property Value
Methods
Alloc()
[Version("1.0")]
public static Matrix Alloc()
Returns
Determinant()
[Version("1.0")]
public float Determinant()
Returns
Equal(Matrix)
[Version("1.10")]
public bool Equal(Matrix b)
Parameters
b
Matrix
Returns
EqualFast(Matrix)
[Version("1.10")]
public bool EqualFast(Matrix b)
Parameters
b
Matrix
Returns
Equals(Matrix?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Matrix? other)
Parameters
other
MatrixAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
Free()
[Version("1.0")]
public void Free()
GetGType()
public static Type GetGType()
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetValue(uint, uint)
[Version("1.0")]
public float GetValue(uint row, uint col)
Parameters
Returns
GetXScale()
[Version("1.0")]
public float GetXScale()
Returns
GetXTranslation()
[Version("1.10")]
public float GetXTranslation()
Returns
GetYScale()
[Version("1.0")]
public float GetYScale()
Returns
GetYTranslation()
[Version("1.10")]
public float GetYTranslation()
Returns
GetZScale()
[Version("1.0")]
public float GetZScale()
Returns
GetZTranslation()
[Version("1.10")]
public float GetZTranslation()
Returns
InitFrom2d(double, double, double, double, double, double)
[Version("1.0")]
public Matrix InitFrom2d(double xx, double yx, double xy, double yy, double x0, double y0)
Parameters
Returns
InitFromMatrix(Matrix)
[Version("1.0")]
public Matrix InitFromMatrix(Matrix src)
Parameters
src
Matrix
Returns
InitFromVec4(Vec4, Vec4, Vec4, Vec4)
[Version("1.0")]
public Matrix InitFromVec4(Vec4 v0, Vec4 v1, Vec4 v2, Vec4 v3)
Parameters
Returns
InitFrustum(float, float, float, float, float, float)
[Version("1.2")]
public Matrix InitFrustum(float left, float right, float bottom, float top, float zNear, float zFar)
Parameters
Returns
InitIdentity()
[Version("1.0")]
public Matrix InitIdentity()
Returns
InitLookAt(Vec3, Vec3, Vec3)
[Version("1.0")]
public Matrix InitLookAt(Vec3 eye, Vec3 center, Vec3 up)
Parameters
Returns
InitOrtho(float, float, float, float, float, float)
[Version("1.0")]
public Matrix InitOrtho(float left, float right, float top, float bottom, float zNear, float zFar)
Parameters
Returns
InitPerspective(float, float, float, float)
[Version("1.0")]
public Matrix InitPerspective(float fovy, float aspect, float zNear, float zFar)
Parameters
Returns
InitRotate(float, Vec3)
[Version("1.0")]
public Matrix InitRotate(float angle, Vec3 axis)
Parameters
Returns
InitScale(float, float, float)
[Version("1.0")]
public Matrix InitScale(float x, float y, float z)
Parameters
Returns
InitSkew(float, float)
[Version("1.0")]
public Matrix InitSkew(float xSkew, float ySkew)
Parameters
Returns
InitTranslate(Point3D)
[Version("1.0")]
public Matrix InitTranslate(Point3D p)
Parameters
p
Point3D
Returns
Is2d()
[Version("1.0")]
public bool Is2d()
Returns
IsBackfaceVisible()
[Version("1.0")]
public bool IsBackfaceVisible()
Returns
IsIdentity()
[Version("1.0")]
public bool IsIdentity()
Returns
IsSingular()
[Version("1.0")]
public bool IsSingular()
Returns
Near(Matrix, float)
[Version("1.10")]
public bool Near(Matrix b, float epsilon)
Parameters
Returns
Print()
[Version("1.0")]
public void Print()
Rotate(float, Vec3)
[Version("1.0")]
public void Rotate(float angle, Vec3 axis)
Parameters
RotateEuler(Euler)
[Version("1.2")]
public void RotateEuler(Euler e)
Parameters
e
Euler
RotateQuaternion(Quaternion)
[Version("1.2")]
public void RotateQuaternion(Quaternion q)
Parameters
RotateX(float)
[Version("1.0")]
public void RotateX(float angle)
Parameters
angle
float
RotateY(float)
[Version("1.0")]
public void RotateY(float angle)
Parameters
angle
float
RotateZ(float)
[Version("1.0")]
public void RotateZ(float angle)
Parameters
angle
float
Scale(float, float, float)
[Version("1.0")]
public void Scale(float factorX, float factorY, float factorZ)
Parameters
SkewXy(float)
[Version("1.0")]
public void SkewXy(float factor)
Parameters
factor
float
SkewXz(float)
[Version("1.0")]
public void SkewXz(float factor)
Parameters
factor
float
SkewYz(float)
[Version("1.0")]
public void SkewYz(float factor)
Parameters
factor
float
To2d(out double, out double, out double, out double, out double, out double)
[Version("1.0")]
public bool To2d(out double xx, out double yx, out double xy, out double yy, out double x0, out double y0)
Parameters
Returns
Translate(Point3D)
[Version("1.0")]
public void Translate(Point3D pos)
Parameters
pos
Point3D