Table of Contents

Class Matrixf

Namespace
Vintagestory.API.Client
Assembly
VintagestoryAPI.dll
public class Matrixf
Inheritance
Matrixf
Inherited Members
Extension Methods

Constructors

Matrixf()

public Matrixf()

Matrixf(float[])

public Matrixf(float[] values)

Parameters

values float[]

Fields

Values

public float[] Values

Field Value

float[]

Properties

ValuesAsDouble

public double[] ValuesAsDouble { get; }

Property Value

double[]

Methods

Clone()

public Matrixf Clone()

Returns

Matrixf

Create()

public static Matrixf Create()

Returns

Matrixf

FollowPlayer()

public Matrixf FollowPlayer()

Returns

Matrixf

FollowPlayerXZ()

public Matrixf FollowPlayerXZ()

Returns

Matrixf

Identity()

public Matrixf Identity()

Returns

Matrixf

Invert()

public Matrixf Invert()

Returns

Matrixf

Mul(float[])

public Matrixf Mul(float[] matrix)

Parameters

matrix float[]

Returns

Matrixf

Mul(Matrixf)

public Matrixf Mul(Matrixf matrix)

Parameters

matrix Matrixf

Returns

Matrixf

ReverseMul(float[])

public Matrixf ReverseMul(float[] matrix)

Parameters

matrix float[]

Returns

Matrixf

Rotate(float, float, float)

public Matrixf Rotate(float radX, float radY, float radZ)

Parameters

radX float
radY float
radZ float

Returns

Matrixf

Rotate(Vec3f)

public Matrixf Rotate(Vec3f radians)

Parameters

radians Vec3f

Returns

Matrixf

RotateDeg(Vec3f)

public Matrixf RotateDeg(Vec3f degrees)

Parameters

degrees Vec3f

Returns

Matrixf

RotateX(float)

public Matrixf RotateX(float radX)

Parameters

radX float

Returns

Matrixf

RotateXDeg(float)

public Matrixf RotateXDeg(float degX)

Parameters

degX float

Returns

Matrixf

RotateY(float)

public Matrixf RotateY(float radY)

Parameters

radY float

Returns

Matrixf

RotateYDeg(float)

public Matrixf RotateYDeg(float degY)

Parameters

degY float

Returns

Matrixf

RotateZ(float)

public Matrixf RotateZ(float radZ)

Parameters

radZ float

Returns

Matrixf

RotateZDeg(float)

public Matrixf RotateZDeg(float degZ)

Parameters

degZ float

Returns

Matrixf

Scale(float, float, float)

public Matrixf Scale(float x, float y, float z)

Parameters

x float
y float
z float

Returns

Matrixf

Set(double[])

public Matrixf Set(double[] values)

Parameters

values double[]

Returns

Matrixf

Set(float[])

public Matrixf Set(float[] values)

Parameters

values float[]

Returns

Matrixf

TransformVector(Vec4d)

Vectors with w==0 are called vectors and with w==1 are called points

public Vec4d TransformVector(Vec4d vec)

Parameters

vec Vec4d

Returns

Vec4d

TransformVector(Vec4f)

Vectors with w==0 are called vectors and with w==1 are called points

public Vec4f TransformVector(Vec4f vec)

Parameters

vec Vec4f

Returns

Vec4f

Translate(double, double, double)

public Matrixf Translate(double x, double y, double z)

Parameters

x double
y double
z double

Returns

Matrixf

Translate(float, float, float)

public Matrixf Translate(float x, float y, float z)

Parameters

x float
y float
z float

Returns

Matrixf

Translate(Vec3f)

public Matrixf Translate(Vec3f vec)

Parameters

vec Vec3f

Returns

Matrixf