C# Class CSharpGL.matHelper

Afficher le fichier Open project: bitzhuwei/CSharpGL

Méthodes publiques

Méthode Description
ToMat2 ( this values, int startIndex ) : CSharpGL.mat2

把连续4个float值按照列优先的顺序转换为mat2

ToMat3 ( this values, int startIndex ) : mat3

把连续9个float值按照列优先的顺序转换为mat3

ToMat4 ( this values, int startIndex ) : CSharpGL.mat4

把连续16个float值按照列优先的顺序转换为mat4

TryParse ( this matrix, float &fovy, float &aspectRatio, float &zNear, float &zFar ) : bool

如果此矩阵是glm.perspective()的结果,那么返回glm.perspective()的各个参数值。

TryParse ( this matrix, float &left, float &right, float &bottom, float &top, float &zNear, float &zFar ) : bool

如果此矩阵是glm.ortho()的结果,那么返回glm.ortho()的各个参数值。

Method Details

ToMat2() public static méthode

把连续4个float值按照列优先的顺序转换为mat2
public static ToMat2 ( this values, int startIndex ) : CSharpGL.mat2
values this
startIndex int
Résultat CSharpGL.mat2

ToMat3() public static méthode

把连续9个float值按照列优先的顺序转换为mat3
public static ToMat3 ( this values, int startIndex ) : mat3
values this
startIndex int
Résultat mat3

ToMat4() public static méthode

把连续16个float值按照列优先的顺序转换为mat4
public static ToMat4 ( this values, int startIndex ) : CSharpGL.mat4
values this
startIndex int
Résultat CSharpGL.mat4

TryParse() public static méthode

如果此矩阵是glm.perspective()的结果,那么返回glm.perspective()的各个参数值。
public static TryParse ( this matrix, float &fovy, float &aspectRatio, float &zNear, float &zFar ) : bool
matrix this
fovy float
aspectRatio float
zNear float
zFar float
Résultat bool

TryParse() public static méthode

如果此矩阵是glm.ortho()的结果,那么返回glm.ortho()的各个参数值。
public static TryParse ( this matrix, float &left, float &right, float &bottom, float &top, float &zNear, float &zFar ) : bool
matrix this
left float
right float
bottom float
top float
zNear float
zFar float
Résultat bool