C# 클래스 CSharpGL.IBoundingBoxHelper

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

공개 메소드들

메소드 설명
Expand ( this boundingBox, float factor = 0.1f ) : BoundingBox

Expands the IBoundingBox's values.

GetCenter ( this boundingBox ) : vec3

Gets center position of this bounding box.

Render ( this boundingBox, Color color, RenderEventArgs arg ) : void

Render this bounding box.

Union ( this boundingBox, IBoundingBox another ) : BoundingBox

expand this boudning box's positions to wrap another one.

Union ( this box, vec3 point ) : BoundingBox

비공개 메소드들

메소드 설명
Max ( vec3 a, vec3 b ) : vec3

Gets all maximum parts from two vec3.

Min ( vec3 a, vec3 b ) : vec3

Gets all minimum parts from two vec3.

메소드 상세

Expand() 공개 정적인 메소드

Expands the IBoundingBox's values.
public static Expand ( this boundingBox, float factor = 0.1f ) : BoundingBox
boundingBox this
factor float 0 for no expanding.
리턴 BoundingBox

GetCenter() 공개 정적인 메소드

Gets center position of this bounding box.
public static GetCenter ( this boundingBox ) : vec3
boundingBox this
리턴 vec3

Render() 공개 정적인 메소드

Render this bounding box.
public static Render ( this boundingBox, Color color, RenderEventArgs arg ) : void
boundingBox this
color Color
arg RenderEventArgs
리턴 void

Union() 공개 정적인 메소드

expand this boudning box's positions to wrap another one.
public static Union ( this boundingBox, IBoundingBox another ) : BoundingBox
boundingBox this
another IBoundingBox
리턴 BoundingBox

Union() 공개 정적인 메소드

public static Union ( this box, vec3 point ) : BoundingBox
box this
point vec3
리턴 BoundingBox