Table of Contents

Class Matrix

Namespace
Graphene.Internal
Assembly
Graphene-1.0.dll
public class Matrix
Inheritance
Matrix
Inherited Members

Methods

Alloc()

Calls native constructor graphene_matrix_alloc. Version: 1.0

[Version("1.0")]
public static extern MatrixOwnedHandle Alloc()

Returns

MatrixOwnedHandle

Transfer ownership: Full Nullable: False

Determinant(MatrixHandle)

Calls native method graphene_matrix_determinant. Version: 1.0

[Version("1.0")]
public static extern float Determinant(MatrixHandle m)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

Returns

float

Transfer ownership: None Nullable: False

Equal(MatrixHandle, MatrixHandle)

Calls native method graphene_matrix_equal. Version: 1.10

[Version("1.10")]
public static extern bool Equal(MatrixHandle a, MatrixHandle b)

Parameters

a MatrixHandle

Transfer ownership: None Nullable: False

b MatrixHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

EqualFast(MatrixHandle, MatrixHandle)

Calls native method graphene_matrix_equal_fast. Version: 1.10

[Version("1.10")]
public static extern bool EqualFast(MatrixHandle a, MatrixHandle b)

Parameters

a MatrixHandle

Transfer ownership: None Nullable: False

b MatrixHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Free(MatrixHandle)

Calls native method graphene_matrix_free. Version: 1.0

[Version("1.0")]
public static extern void Free(MatrixHandle m)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

GetGType()

Calls native function graphene_matrix_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetValue(MatrixHandle, uint, uint)

Calls native method graphene_matrix_get_value. Version: 1.0

[Version("1.0")]
public static extern float GetValue(MatrixHandle m, uint row, uint col)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

row uint

Transfer ownership: None Nullable: False

col uint

Transfer ownership: None Nullable: False

Returns

float

Transfer ownership: None Nullable: False

GetXScale(MatrixHandle)

Calls native method graphene_matrix_get_x_scale. Version: 1.0

[Version("1.0")]
public static extern float GetXScale(MatrixHandle m)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

Returns

float

Transfer ownership: None Nullable: False

GetXTranslation(MatrixHandle)

Calls native method graphene_matrix_get_x_translation. Version: 1.10

[Version("1.10")]
public static extern float GetXTranslation(MatrixHandle m)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

Returns

float

Transfer ownership: None Nullable: False

GetYScale(MatrixHandle)

Calls native method graphene_matrix_get_y_scale. Version: 1.0

[Version("1.0")]
public static extern float GetYScale(MatrixHandle m)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

Returns

float

Transfer ownership: None Nullable: False

GetYTranslation(MatrixHandle)

Calls native method graphene_matrix_get_y_translation. Version: 1.10

[Version("1.10")]
public static extern float GetYTranslation(MatrixHandle m)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

Returns

float

Transfer ownership: None Nullable: False

GetZScale(MatrixHandle)

Calls native method graphene_matrix_get_z_scale. Version: 1.0

[Version("1.0")]
public static extern float GetZScale(MatrixHandle m)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

Returns

float

Transfer ownership: None Nullable: False

GetZTranslation(MatrixHandle)

Calls native method graphene_matrix_get_z_translation. Version: 1.10

[Version("1.10")]
public static extern float GetZTranslation(MatrixHandle m)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

Returns

float

Transfer ownership: None Nullable: False

InitFrom2d(MatrixHandle, double, double, double, double, double, double)

Calls native method graphene_matrix_init_from_2d. Version: 1.0

[Version("1.0")]
public static extern MatrixUnownedHandle InitFrom2d(MatrixHandle m, double xx, double yx, double xy, double yy, double x0, double y0)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

xx double

Transfer ownership: None Nullable: False

yx double

Transfer ownership: None Nullable: False

xy double

Transfer ownership: None Nullable: False

yy double

Transfer ownership: None Nullable: False

x0 double

Transfer ownership: None Nullable: False

y0 double

Transfer ownership: None Nullable: False

Returns

MatrixUnownedHandle

Transfer ownership: None Nullable: False

InitFromFloat(MatrixHandle, ref float)

Calls native method graphene_matrix_init_from_float. Version: 1.0

[Version("1.0")]
public static extern MatrixUnownedHandle InitFromFloat(MatrixHandle m, ref float v)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

v float

Transfer ownership: None Nullable: False

Returns

MatrixUnownedHandle

Transfer ownership: None Nullable: False

InitFromMatrix(MatrixHandle, MatrixHandle)

Calls native method graphene_matrix_init_from_matrix. Version: 1.0

[Version("1.0")]
public static extern MatrixUnownedHandle InitFromMatrix(MatrixHandle m, MatrixHandle src)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

src MatrixHandle

Transfer ownership: None Nullable: False

Returns

MatrixUnownedHandle

Transfer ownership: None Nullable: False

InitFromVec4(MatrixHandle, Vec4Handle, Vec4Handle, Vec4Handle, Vec4Handle)

Calls native method graphene_matrix_init_from_vec4. Version: 1.0

[Version("1.0")]
public static extern MatrixUnownedHandle InitFromVec4(MatrixHandle m, Vec4Handle v0, Vec4Handle v1, Vec4Handle v2, Vec4Handle v3)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

v0 Vec4Handle

Transfer ownership: None Nullable: False

v1 Vec4Handle

Transfer ownership: None Nullable: False

v2 Vec4Handle

Transfer ownership: None Nullable: False

v3 Vec4Handle

Transfer ownership: None Nullable: False

Returns

MatrixUnownedHandle

Transfer ownership: None Nullable: False

InitFrustum(MatrixHandle, float, float, float, float, float, float)

Calls native method graphene_matrix_init_frustum. Version: 1.2

[Version("1.2")]
public static extern MatrixUnownedHandle InitFrustum(MatrixHandle m, float left, float right, float bottom, float top, float zNear, float zFar)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

left float

Transfer ownership: None Nullable: False

right float

Transfer ownership: None Nullable: False

bottom float

Transfer ownership: None Nullable: False

top float

Transfer ownership: None Nullable: False

zNear float

Transfer ownership: None Nullable: False

zFar float

Transfer ownership: None Nullable: False

Returns

MatrixUnownedHandle

Transfer ownership: None Nullable: False

InitIdentity(MatrixHandle)

Calls native method graphene_matrix_init_identity. Version: 1.0

[Version("1.0")]
public static extern MatrixUnownedHandle InitIdentity(MatrixHandle m)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

Returns

MatrixUnownedHandle

Transfer ownership: None Nullable: False

InitLookAt(MatrixHandle, Vec3Handle, Vec3Handle, Vec3Handle)

Calls native method graphene_matrix_init_look_at. Version: 1.0

[Version("1.0")]
public static extern MatrixUnownedHandle InitLookAt(MatrixHandle m, Vec3Handle eye, Vec3Handle center, Vec3Handle up)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

eye Vec3Handle

Transfer ownership: None Nullable: False

center Vec3Handle

Transfer ownership: None Nullable: False

up Vec3Handle

Transfer ownership: None Nullable: False

Returns

MatrixUnownedHandle

Transfer ownership: None Nullable: False

InitOrtho(MatrixHandle, float, float, float, float, float, float)

Calls native method graphene_matrix_init_ortho. Version: 1.0

[Version("1.0")]
public static extern MatrixUnownedHandle InitOrtho(MatrixHandle m, float left, float right, float top, float bottom, float zNear, float zFar)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

left float

Transfer ownership: None Nullable: False

right float

Transfer ownership: None Nullable: False

top float

Transfer ownership: None Nullable: False

bottom float

Transfer ownership: None Nullable: False

zNear float

Transfer ownership: None Nullable: False

zFar float

Transfer ownership: None Nullable: False

Returns

MatrixUnownedHandle

Transfer ownership: None Nullable: False

InitPerspective(MatrixHandle, float, float, float, float)

Calls native method graphene_matrix_init_perspective. Version: 1.0

[Version("1.0")]
public static extern MatrixUnownedHandle InitPerspective(MatrixHandle m, float fovy, float aspect, float zNear, float zFar)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

fovy float

Transfer ownership: None Nullable: False

aspect float

Transfer ownership: None Nullable: False

zNear float

Transfer ownership: None Nullable: False

zFar float

Transfer ownership: None Nullable: False

Returns

MatrixUnownedHandle

Transfer ownership: None Nullable: False

InitRotate(MatrixHandle, float, Vec3Handle)

Calls native method graphene_matrix_init_rotate. Version: 1.0

[Version("1.0")]
public static extern MatrixUnownedHandle InitRotate(MatrixHandle m, float angle, Vec3Handle axis)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

angle float

Transfer ownership: None Nullable: False

axis Vec3Handle

Transfer ownership: None Nullable: False

Returns

MatrixUnownedHandle

Transfer ownership: None Nullable: False

InitScale(MatrixHandle, float, float, float)

Calls native method graphene_matrix_init_scale. Version: 1.0

[Version("1.0")]
public static extern MatrixUnownedHandle InitScale(MatrixHandle m, float x, float y, float z)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

x float

Transfer ownership: None Nullable: False

y float

Transfer ownership: None Nullable: False

z float

Transfer ownership: None Nullable: False

Returns

MatrixUnownedHandle

Transfer ownership: None Nullable: False

InitSkew(MatrixHandle, float, float)

Calls native method graphene_matrix_init_skew. Version: 1.0

[Version("1.0")]
public static extern MatrixUnownedHandle InitSkew(MatrixHandle m, float xSkew, float ySkew)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

xSkew float

Transfer ownership: None Nullable: False

ySkew float

Transfer ownership: None Nullable: False

Returns

MatrixUnownedHandle

Transfer ownership: None Nullable: False

InitTranslate(MatrixHandle, Point3DHandle)

Calls native method graphene_matrix_init_translate. Version: 1.0

[Version("1.0")]
public static extern MatrixUnownedHandle InitTranslate(MatrixHandle m, Point3DHandle p)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

p Point3DHandle

Transfer ownership: None Nullable: False

Returns

MatrixUnownedHandle

Transfer ownership: None Nullable: False

Is2d(MatrixHandle)

Calls native method graphene_matrix_is_2d. Version: 1.0

[Version("1.0")]
public static extern bool Is2d(MatrixHandle m)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

IsBackfaceVisible(MatrixHandle)

Calls native method graphene_matrix_is_backface_visible. Version: 1.0

[Version("1.0")]
public static extern bool IsBackfaceVisible(MatrixHandle m)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

IsIdentity(MatrixHandle)

Calls native method graphene_matrix_is_identity. Version: 1.0

[Version("1.0")]
public static extern bool IsIdentity(MatrixHandle m)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

IsSingular(MatrixHandle)

Calls native method graphene_matrix_is_singular. Version: 1.0

[Version("1.0")]
public static extern bool IsSingular(MatrixHandle m)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Near(MatrixHandle, MatrixHandle, float)

Calls native method graphene_matrix_near. Version: 1.10

[Version("1.10")]
public static extern bool Near(MatrixHandle a, MatrixHandle b, float epsilon)

Parameters

a MatrixHandle

Transfer ownership: None Nullable: False

b MatrixHandle

Transfer ownership: None Nullable: False

epsilon float

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Print(MatrixHandle)

Calls native method graphene_matrix_print. Version: 1.0

[Version("1.0")]
public static extern void Print(MatrixHandle m)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

Rotate(MatrixHandle, float, Vec3Handle)

Calls native method graphene_matrix_rotate. Version: 1.0

[Version("1.0")]
public static extern void Rotate(MatrixHandle m, float angle, Vec3Handle axis)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

angle float

Transfer ownership: None Nullable: False

axis Vec3Handle

Transfer ownership: None Nullable: False

RotateEuler(MatrixHandle, EulerHandle)

Calls native method graphene_matrix_rotate_euler. Version: 1.2

[Version("1.2")]
public static extern void RotateEuler(MatrixHandle m, EulerHandle e)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

e EulerHandle

Transfer ownership: None Nullable: False

RotateQuaternion(MatrixHandle, QuaternionHandle)

Calls native method graphene_matrix_rotate_quaternion. Version: 1.2

[Version("1.2")]
public static extern void RotateQuaternion(MatrixHandle m, QuaternionHandle q)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

q QuaternionHandle

Transfer ownership: None Nullable: False

RotateX(MatrixHandle, float)

Calls native method graphene_matrix_rotate_x. Version: 1.0

[Version("1.0")]
public static extern void RotateX(MatrixHandle m, float angle)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

angle float

Transfer ownership: None Nullable: False

RotateY(MatrixHandle, float)

Calls native method graphene_matrix_rotate_y. Version: 1.0

[Version("1.0")]
public static extern void RotateY(MatrixHandle m, float angle)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

angle float

Transfer ownership: None Nullable: False

RotateZ(MatrixHandle, float)

Calls native method graphene_matrix_rotate_z. Version: 1.0

[Version("1.0")]
public static extern void RotateZ(MatrixHandle m, float angle)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

angle float

Transfer ownership: None Nullable: False

Scale(MatrixHandle, float, float, float)

Calls native method graphene_matrix_scale. Version: 1.0

[Version("1.0")]
public static extern void Scale(MatrixHandle m, float factorX, float factorY, float factorZ)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

factorX float

Transfer ownership: None Nullable: False

factorY float

Transfer ownership: None Nullable: False

factorZ float

Transfer ownership: None Nullable: False

SkewXy(MatrixHandle, float)

Calls native method graphene_matrix_skew_xy. Version: 1.0

[Version("1.0")]
public static extern void SkewXy(MatrixHandle m, float factor)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

factor float

Transfer ownership: None Nullable: False

SkewXz(MatrixHandle, float)

Calls native method graphene_matrix_skew_xz. Version: 1.0

[Version("1.0")]
public static extern void SkewXz(MatrixHandle m, float factor)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

factor float

Transfer ownership: None Nullable: False

SkewYz(MatrixHandle, float)

Calls native method graphene_matrix_skew_yz. Version: 1.0

[Version("1.0")]
public static extern void SkewYz(MatrixHandle m, float factor)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

factor float

Transfer ownership: None Nullable: False

To2d(MatrixHandle, out double, out double, out double, out double, out double, out double)

Calls native method graphene_matrix_to_2d. Version: 1.0

[Version("1.0")]
public static extern bool To2d(MatrixHandle m, out double xx, out double yx, out double xy, out double yy, out double x0, out double y0)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

xx double

Transfer ownership: Full Nullable: False

yx double

Transfer ownership: Full Nullable: False

xy double

Transfer ownership: Full Nullable: False

yy double

Transfer ownership: Full Nullable: False

x0 double

Transfer ownership: Full Nullable: False

y0 double

Transfer ownership: Full Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

ToFloat(MatrixHandle, ref float)

Calls native method graphene_matrix_to_float. Version: 1.0

[Version("1.0")]
public static extern void ToFloat(MatrixHandle m, ref float v)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

v float

Transfer ownership: None Nullable: False

Translate(MatrixHandle, Point3DHandle)

Calls native method graphene_matrix_translate. Version: 1.0

[Version("1.0")]
public static extern void Translate(MatrixHandle m, Point3DHandle pos)

Parameters

m MatrixHandle

Transfer ownership: None Nullable: False

pos Point3DHandle

Transfer ownership: None Nullable: False