C# Class CSharpGL.IBoundingBoxHelper

Afficher le fichier Open project: bitzhuwei/CSharpGL

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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.

Method Details

Expand() public static méthode

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

GetCenter() public static méthode

Gets center position of this bounding box.
public static GetCenter ( this boundingBox ) : vec3
boundingBox this
Résultat vec3

Render() public static méthode

Render this bounding box.
public static Render ( this boundingBox, Color color, RenderEventArgs arg ) : void
boundingBox this
color Color
arg RenderEventArgs
Résultat void

Union() public static méthode

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

Union() public static méthode

public static Union ( this box, vec3 point ) : BoundingBox
box this
point vec3
Résultat BoundingBox