Table of Contents

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

MatrixOwnedHandle

Methods

Alloc()

[Version("1.0")]
public static Matrix Alloc()

Returns

Matrix

Determinant()

[Version("1.0")]
public float Determinant()

Returns

float

Equal(Matrix)

[Version("1.10")]
public bool Equal(Matrix b)

Parameters

b Matrix

Returns

bool

EqualFast(Matrix)

[Version("1.10")]
public bool EqualFast(Matrix b)

Parameters

b Matrix

Returns

bool

Equals(Matrix?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Matrix? other)

Parameters

other Matrix

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Free()

[Version("1.0")]
public void Free()

GetGType()

public static Type GetGType()

Returns

Type

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

row uint
col uint

Returns

float

GetXScale()

[Version("1.0")]
public float GetXScale()

Returns

float

GetXTranslation()

[Version("1.10")]
public float GetXTranslation()

Returns

float

GetYScale()

[Version("1.0")]
public float GetYScale()

Returns

float

GetYTranslation()

[Version("1.10")]
public float GetYTranslation()

Returns

float

GetZScale()

[Version("1.0")]
public float GetZScale()

Returns

float

GetZTranslation()

[Version("1.10")]
public float GetZTranslation()

Returns

float

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

xx double
yx double
xy double
yy double
x0 double
y0 double

Returns

Matrix

InitFromMatrix(Matrix)

[Version("1.0")]
public Matrix InitFromMatrix(Matrix src)

Parameters

src Matrix

Returns

Matrix

InitFromVec4(Vec4, Vec4, Vec4, Vec4)

[Version("1.0")]
public Matrix InitFromVec4(Vec4 v0, Vec4 v1, Vec4 v2, Vec4 v3)

Parameters

v0 Vec4
v1 Vec4
v2 Vec4
v3 Vec4

Returns

Matrix

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

left float
right float
bottom float
top float
zNear float
zFar float

Returns

Matrix

InitIdentity()

[Version("1.0")]
public Matrix InitIdentity()

Returns

Matrix

InitLookAt(Vec3, Vec3, Vec3)

[Version("1.0")]
public Matrix InitLookAt(Vec3 eye, Vec3 center, Vec3 up)

Parameters

eye Vec3
center Vec3
up Vec3

Returns

Matrix

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

left float
right float
top float
bottom float
zNear float
zFar float

Returns

Matrix

InitPerspective(float, float, float, float)

[Version("1.0")]
public Matrix InitPerspective(float fovy, float aspect, float zNear, float zFar)

Parameters

fovy float
aspect float
zNear float
zFar float

Returns

Matrix

InitRotate(float, Vec3)

[Version("1.0")]
public Matrix InitRotate(float angle, Vec3 axis)

Parameters

angle float
axis Vec3

Returns

Matrix

InitScale(float, float, float)

[Version("1.0")]
public Matrix InitScale(float x, float y, float z)

Parameters

x float
y float
z float

Returns

Matrix

InitSkew(float, float)

[Version("1.0")]
public Matrix InitSkew(float xSkew, float ySkew)

Parameters

xSkew float
ySkew float

Returns

Matrix

InitTranslate(Point3D)

[Version("1.0")]
public Matrix InitTranslate(Point3D p)

Parameters

p Point3D

Returns

Matrix

Is2d()

[Version("1.0")]
public bool Is2d()

Returns

bool

IsBackfaceVisible()

[Version("1.0")]
public bool IsBackfaceVisible()

Returns

bool

IsIdentity()

[Version("1.0")]
public bool IsIdentity()

Returns

bool

IsSingular()

[Version("1.0")]
public bool IsSingular()

Returns

bool

Near(Matrix, float)

[Version("1.10")]
public bool Near(Matrix b, float epsilon)

Parameters

b Matrix
epsilon float

Returns

bool

Print()

[Version("1.0")]
public void Print()

Rotate(float, Vec3)

[Version("1.0")]
public void Rotate(float angle, Vec3 axis)

Parameters

angle float
axis Vec3

RotateEuler(Euler)

[Version("1.2")]
public void RotateEuler(Euler e)

Parameters

e Euler

RotateQuaternion(Quaternion)

[Version("1.2")]
public void RotateQuaternion(Quaternion q)

Parameters

q Quaternion

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

factorX float
factorY float
factorZ float

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

xx double
yx double
xy double
yy double
x0 double
y0 double

Returns

bool

Translate(Point3D)

[Version("1.0")]
public void Translate(Point3D pos)

Parameters

pos Point3D