C# 클래스 CSharpGL.IModelSpaceHelper

파일 보기 프로젝트 열기: bitzhuwei/CSharpGL

공개 메소드들

메소드 설명
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.

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

메소드 상세

CopyModelSpaceStateFrom() 공개 정적인 메소드

Copy IModelSpace state from specified source.
public static CopyModelSpaceStateFrom ( this dest, IModelSpace source ) : void
dest this
source IModelSpace
리턴 void

GetBoundingBox() 공개 정적인 메소드

public static GetBoundingBox ( this model ) : BoundingBox
model this
리턴 BoundingBox

GetMaxMinPosition() 공개 정적인 메소드

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
리턴 void

GetModelMatrix() 공개 정적인 메소드

Get model matrix.
public static GetModelMatrix ( this model ) : CSharpGL.mat4
model this
리턴 CSharpGL.mat4

LegacyTransform() 공개 정적인 메소드

Run legacy model transform.(from model space to world space)
public static LegacyTransform ( this model ) : void
model this
리턴 void

Rotate() 공개 정적인 메소드

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
리턴 void