C# Class CSharpGL.IModelSpaceHelper

Afficher le fichier Open project: bitzhuwei/CSharpGL

Méthodes publiques

Méthode Description
CopyModelSpaceStateFrom ( this dest, IModelSpace source ) : void

Copy IModelSpace state from specified source.

GetBoundingBox ( this model ) : BoundingBox

GetMaxMinPosition ( this model, vec3 &maxPosition, vec3 &minPosition ) : void

Gets max and min position of the AABB box that wraps specified model.

GetModelMatrix ( this model ) : CSharpGL.mat4

Get model matrix.

LegacyTransform ( this model ) : void

Run legacy model transform.(from model space to world space)

Rotate ( this model, float angleDegree, vec3 axis ) : void

Rotate this model based on all previous rotation actions. Thus all rotations will take part in model's rotation result.

在目前的旋转状态下继续旋转一次,即所有的旋转操作都会(按照发生顺序)生效。

Method Details

CopyModelSpaceStateFrom() public static méthode

Copy IModelSpace state from specified source.
public static CopyModelSpaceStateFrom ( this dest, IModelSpace source ) : void
dest this
source IModelSpace
Résultat void

GetBoundingBox() public static méthode

public static GetBoundingBox ( this model ) : BoundingBox
model this
Résultat BoundingBox

GetMaxMinPosition() public static méthode

Gets max and min position of the AABB box that wraps specified model.
public static GetMaxMinPosition ( this model, vec3 &maxPosition, vec3 &minPosition ) : void
model this
maxPosition vec3
minPosition vec3
Résultat void

GetModelMatrix() public static méthode

Get model matrix.
public static GetModelMatrix ( this model ) : CSharpGL.mat4
model this
Résultat CSharpGL.mat4

LegacyTransform() public static méthode

Run legacy model transform.(from model space to world space)
public static LegacyTransform ( this model ) : void
model this
Résultat void

Rotate() public static méthode

Rotate this model based on all previous rotation actions. Thus all rotations will take part in model's rotation result.

在目前的旋转状态下继续旋转一次,即所有的旋转操作都会(按照发生顺序)生效。

public static Rotate ( this model, float angleDegree, vec3 axis ) : void
model this
angleDegree float Angle in Degree.
axis vec3
Résultat void