RenderStack 11.06.1
Public Member Functions | Public Attributes | Properties
RenderStack.Math.BoundingBox Struct Reference

List of all members.

Public Member Functions

void Clear ()
void ExtendBy (Vector3 point)
override string ToString ()

Public Attributes

Vector3 Min
Vector3 Max

Properties

Vector3 Size [get]
Vector3 HalfSize [get]
Vector3 Center [get]

Detailed Description

Note:
Somewhat experimental

Definition at line 29 of file BoundingBox.cs.


Member Function Documentation

void RenderStack.Math.BoundingBox.Clear ( )

Definition at line 37 of file BoundingBox.cs.

        {
            Min = new Vector3(float.MaxValue, float.MaxValue, float.MaxValue);
            Max = new Vector3(float.MinValue, float.MinValue, float.MinValue);
        }
void RenderStack.Math.BoundingBox.ExtendBy ( Vector3  point)

Definition at line 43 of file BoundingBox.cs.

References RenderStack.Math.Vector3.X, RenderStack.Math.Vector3.Y, and RenderStack.Math.Vector3.Z.

        {
            if(point.X < Min.X) Min.X = point.X;
            if(point.X > Max.X) Max.X = point.X;
            if(point.Y < Min.Y) Min.Y = point.Y;
            if(point.Y > Max.Y) Max.Y = point.Y;
            if(point.Z < Min.Z) Min.Z = point.Z;
            if(point.Z > Max.Z) Max.Z = point.Z;
        }
override string RenderStack.Math.BoundingBox.ToString ( )

Definition at line 53 of file BoundingBox.cs.

        {
            return Min.ToString() + " .. " + Max.ToString();
        }

Member Data Documentation

Definition at line 31 of file BoundingBox.cs.

Definition at line 32 of file BoundingBox.cs.


Property Documentation

Vector3 RenderStack.Math.BoundingBox.Size [get]

Definition at line 33 of file BoundingBox.cs.

Vector3 RenderStack.Math.BoundingBox.HalfSize [get]

Definition at line 34 of file BoundingBox.cs.

Vector3 RenderStack.Math.BoundingBox.Center [get]

Definition at line 35 of file BoundingBox.cs.


The documentation for this struct was generated from the following file: