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
Create()
public static Matrixf Create()
Returns
FollowPlayer()
public Matrixf FollowPlayer()
Returns
FollowPlayerXZ()
public Matrixf FollowPlayerXZ()
Returns
Identity()
public Matrixf Identity()
Returns
Invert()
public Matrixf Invert()
Returns
Mul(float[])
public Matrixf Mul(float[] matrix)
Parameters
matrix
float[]
Returns
Mul(Matrixf)
public Matrixf Mul(Matrixf matrix)
Parameters
matrix
Matrixf
Returns
ReverseMul(float[])
public Matrixf ReverseMul(float[] matrix)
Parameters
matrix
float[]
Returns
Rotate(float, float, float)
public Matrixf Rotate(float radX, float radY, float radZ)
Parameters
Returns
Rotate(Vec3f)
public Matrixf Rotate(Vec3f radians)
Parameters
radians
Vec3f
Returns
RotateDeg(Vec3f)
public Matrixf RotateDeg(Vec3f degrees)
Parameters
degrees
Vec3f
Returns
RotateX(float)
public Matrixf RotateX(float radX)
Parameters
radX
float
Returns
RotateXDeg(float)
public Matrixf RotateXDeg(float degX)
Parameters
degX
float
Returns
RotateY(float)
public Matrixf RotateY(float radY)
Parameters
radY
float
Returns
RotateYDeg(float)
public Matrixf RotateYDeg(float degY)
Parameters
degY
float
Returns
RotateZ(float)
public Matrixf RotateZ(float radZ)
Parameters
radZ
float
Returns
RotateZDeg(float)
public Matrixf RotateZDeg(float degZ)
Parameters
degZ
float
Returns
Scale(float, float, float)
public Matrixf Scale(float x, float y, float z)
Parameters
Returns
Set(double[])
public Matrixf Set(double[] values)
Parameters
values
double[]
Returns
Set(float[])
public Matrixf Set(float[] values)
Parameters
values
float[]
Returns
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
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
Translate(double, double, double)
public Matrixf Translate(double x, double y, double z)
Parameters
Returns
Translate(float, float, float)
public Matrixf Translate(float x, float y, float z)
Parameters
Returns
Translate(Vec3f)
public Matrixf Translate(Vec3f vec)
Parameters
vec
Vec3f