C# Class IrrlichtNETCP.Box3D

Show file Open project: Paulus/irrlichtnetcp Class Usage Examples

Public Properties

Property Type Description
MaxEdge IrrlichtNETCP.Vector3D
MinEdge IrrlichtNETCP.Vector3D

Public Methods

Method Description
AddInternalBox ( Box3D b ) : void

Adds an other bounding box to the bounding box, causing it to grow bigger, if the box is outside of the box

AddInternalPoint ( IrrlichtNETCP.Vector3D p ) : void

Adds a point to the bounding box, causing it to grow bigger, if point is outside of the box

AddInternalPoint ( float x, float y, float z ) : void

Adds a point to the bounding box, causing it to grow bigger, if point is outside of the box.

Box3D ( IrrlichtNETCP.Vector3D min, IrrlichtNETCP.Vector3D max ) : System
Box3D ( float xMin, float yMin, float zMin, float xMax, float yMax, float zMax ) : System
Equals ( object o ) : bool
From ( float xMin, float yMin, float zMin, float xMax, float yMax, float zMax ) : Box3D
FromUnmanaged ( float b ) : Box3D
GetEdges ( IrrlichtNETCP.Vector3D &edges ) : void

Stores all 8 edges of the box into a array

GetHashCode ( ) : int
IntersectsWithBox ( Box3D other ) : bool

Determinates if the box intersects with an other box.

IntersectsWithLimitedLine ( IrrlichtNETCP.Line3D lineToCol ) : bool

Checks an intersection with some line

IsPointInside ( IrrlichtNETCP.Vector3D p ) : bool

Determinates if a point is within this box.

IsPointTotalInside ( IrrlichtNETCP.Vector3D p ) : bool

Determinates if a point is within this box and its borders.

RandomPoint ( ) : IrrlichtNETCP.Vector3D
Set ( float xMin, float yMin, float zMin, float xMax, float yMax, float zMax ) : void
ToString ( ) : string
ToUnmanaged ( ) : float[]

Method Details

AddInternalBox() public method

Adds an other bounding box to the bounding box, causing it to grow bigger, if the box is outside of the box
public AddInternalBox ( Box3D b ) : void
b Box3D Other bounding box to add into this box.
return void

AddInternalPoint() public method

Adds a point to the bounding box, causing it to grow bigger, if point is outside of the box
public AddInternalPoint ( IrrlichtNETCP.Vector3D p ) : void
p IrrlichtNETCP.Vector3D Point to add into the box.
return void

AddInternalPoint() public method

Adds a point to the bounding box, causing it to grow bigger, if point is outside of the box.
public AddInternalPoint ( float x, float y, float z ) : void
x float X Coordinate of the point to add to this box.
y float Y Coordinate of the point to add to this box.
z float Z Coordinate of the point to add to this box.
return void

Box3D() public method

public Box3D ( IrrlichtNETCP.Vector3D min, IrrlichtNETCP.Vector3D max ) : System
min IrrlichtNETCP.Vector3D
max IrrlichtNETCP.Vector3D
return System

Box3D() public method

public Box3D ( float xMin, float yMin, float zMin, float xMax, float yMax, float zMax ) : System
xMin float
yMin float
zMin float
xMax float
yMax float
zMax float
return System

Equals() public method

public Equals ( object o ) : bool
o object
return bool

From() public static method

public static From ( float xMin, float yMin, float zMin, float xMax, float yMax, float zMax ) : Box3D
xMin float
yMin float
zMin float
xMax float
yMax float
zMax float
return Box3D

FromUnmanaged() public static method

public static FromUnmanaged ( float b ) : Box3D
b float
return Box3D

GetEdges() public method

Stores all 8 edges of the box into a array
public GetEdges ( IrrlichtNETCP.Vector3D &edges ) : void
edges IrrlichtNETCP.Vector3D Aray of 8 edges
return void

GetHashCode() public method

public GetHashCode ( ) : int
return int

IntersectsWithBox() public method

Determinates if the box intersects with an other box.
public IntersectsWithBox ( Box3D other ) : bool
other Box3D Other box to check a intersection with.
return bool

IntersectsWithLimitedLine() public method

Checks an intersection with some line
public IntersectsWithLimitedLine ( IrrlichtNETCP.Line3D lineToCol ) : bool
lineToCol IrrlichtNETCP.Line3D
return bool

IsPointInside() public method

Determinates if a point is within this box.
public IsPointInside ( IrrlichtNETCP.Vector3D p ) : bool
p IrrlichtNETCP.Vector3D : Point to check.
return bool

IsPointTotalInside() public method

Determinates if a point is within this box and its borders.
public IsPointTotalInside ( IrrlichtNETCP.Vector3D p ) : bool
p IrrlichtNETCP.Vector3D Point to check.
return bool

RandomPoint() public method

public RandomPoint ( ) : IrrlichtNETCP.Vector3D
return IrrlichtNETCP.Vector3D

Set() public method

public Set ( float xMin, float yMin, float zMin, float xMax, float yMax, float zMax ) : void
xMin float
yMin float
zMin float
xMax float
yMax float
zMax float
return void

ToString() public method

public ToString ( ) : string
return string

ToUnmanaged() public method

public ToUnmanaged ( ) : float[]
return float[]

Property Details

MaxEdge public property

public Vector3D,IrrlichtNETCP MaxEdge
return IrrlichtNETCP.Vector3D

MinEdge public property

public Vector3D,IrrlichtNETCP MinEdge
return IrrlichtNETCP.Vector3D