C# Class PixelFarm.VectorMath.AxisAlignedBoundingBox

Datei anzeigen Open project: prepare/HTML-Renderer Class Usage Examples

Public Properties

Property Type Description
maxXYZ System.Vector3
minXYZ System.Vector3

Public Methods

Method Description
AxisAlignedBoundingBox ( System.Vector3 minXYZ, System.Vector3 maxXYZ ) : System
Clamp ( System.Vector3 &positionToClamp ) : void
Contains ( AxisAlignedBoundingBox bounds ) : bool
GetCenter ( ) : System.Vector3
GetCenterX ( ) : double
GetIntersectCost ( ) : double

This is the computation cost of doing an intersection with the given type. Attempt to give it in average CPU cycles for the intersecton.

GetSurfaceArea ( ) : double
GetVolume ( ) : double
Intersection ( AxisAlignedBoundingBox boundsA, AxisAlignedBoundingBox boundsB ) : AxisAlignedBoundingBox
NewTransformed ( Matrix4X4 transform ) : AxisAlignedBoundingBox
ToString ( ) : string
Union ( AxisAlignedBoundingBox boundsA, AxisAlignedBoundingBox boundsB ) : AxisAlignedBoundingBox
Union ( AxisAlignedBoundingBox bounds, System.Vector3 vertex ) : AxisAlignedBoundingBox
operator ( ) : AxisAlignedBoundingBox
this ( int index ) : System.Vector3

Method Details

AxisAlignedBoundingBox() public method

public AxisAlignedBoundingBox ( System.Vector3 minXYZ, System.Vector3 maxXYZ ) : System
minXYZ System.Vector3
maxXYZ System.Vector3
return System

Clamp() public method

public Clamp ( System.Vector3 &positionToClamp ) : void
positionToClamp System.Vector3
return void

Contains() public method

public Contains ( AxisAlignedBoundingBox bounds ) : bool
bounds AxisAlignedBoundingBox
return bool

GetCenter() public method

public GetCenter ( ) : System.Vector3
return System.Vector3

GetCenterX() public method

public GetCenterX ( ) : double
return double

GetIntersectCost() public static method

This is the computation cost of doing an intersection with the given type. Attempt to give it in average CPU cycles for the intersecton.
public static GetIntersectCost ( ) : double
return double

GetSurfaceArea() public method

public GetSurfaceArea ( ) : double
return double

GetVolume() public method

public GetVolume ( ) : double
return double

Intersection() public static method

public static Intersection ( AxisAlignedBoundingBox boundsA, AxisAlignedBoundingBox boundsB ) : AxisAlignedBoundingBox
boundsA AxisAlignedBoundingBox
boundsB AxisAlignedBoundingBox
return AxisAlignedBoundingBox

NewTransformed() public method

public NewTransformed ( Matrix4X4 transform ) : AxisAlignedBoundingBox
transform Matrix4X4
return AxisAlignedBoundingBox

ToString() public method

public ToString ( ) : string
return string

Union() public static method

public static Union ( AxisAlignedBoundingBox boundsA, AxisAlignedBoundingBox boundsB ) : AxisAlignedBoundingBox
boundsA AxisAlignedBoundingBox
boundsB AxisAlignedBoundingBox
return AxisAlignedBoundingBox

Union() public static method

public static Union ( AxisAlignedBoundingBox bounds, System.Vector3 vertex ) : AxisAlignedBoundingBox
bounds AxisAlignedBoundingBox
vertex System.Vector3
return AxisAlignedBoundingBox

operator() public static method

public static operator ( ) : AxisAlignedBoundingBox
return AxisAlignedBoundingBox

this() public method

public this ( int index ) : System.Vector3
index int
return System.Vector3

Property Details

maxXYZ public_oe property

public Vector3,System maxXYZ
return System.Vector3

minXYZ public_oe property

public Vector3,System minXYZ
return System.Vector3