C# Class Hyperion.Core.Geometry.BoundingBox

Show file Open project: Kintaro/Hyperion Class Usage Examples

Public Properties

Property Type Description
pMax Point
pMin Point

Public Methods

Method Description
BoundingBox ( ) : System
BoundingBox ( BoundingBox b ) : System
BoundingBox ( Point p ) : System
BoundingBox ( Point p1, Point p2 ) : System
BoundingSphere ( Point &center, double &radius ) : void
Expand ( double delta ) : void
Inside ( Point pt ) : bool
IntersectP ( Ray ray, double &hit0 ) : bool
IntersectP ( Ray ray, double &hit0, double &hit1 ) : bool
Lerp ( double tx, double ty, double tz ) : Point
Offset ( Point p ) : Vector
Overlaps ( BoundingBox b ) : bool
ToString ( ) : string
Union ( BoundingBox b, BoundingBox b2 ) : BoundingBox
Union ( BoundingBox b, Point p ) : BoundingBox

Method Details

BoundingBox() public method

public BoundingBox ( ) : System
return System

BoundingBox() public method

public BoundingBox ( BoundingBox b ) : System
b BoundingBox
return System

BoundingBox() public method

public BoundingBox ( Point p ) : System
p Point
return System

BoundingBox() public method

public BoundingBox ( Point p1, Point p2 ) : System
p1 Point
p2 Point
return System

BoundingSphere() public method

public BoundingSphere ( Point &center, double &radius ) : void
center Point
radius double
return void

Expand() public method

public Expand ( double delta ) : void
delta double
return void

Inside() public method

public Inside ( Point pt ) : bool
pt Point
return bool

IntersectP() public method

public IntersectP ( Ray ray, double &hit0 ) : bool
ray Ray
hit0 double
return bool

IntersectP() public method

public IntersectP ( Ray ray, double &hit0, double &hit1 ) : bool
ray Ray
hit0 double
hit1 double
return bool

Lerp() public method

public Lerp ( double tx, double ty, double tz ) : Point
tx double
ty double
tz double
return Point

Offset() public method

public Offset ( Point p ) : Vector
p Point
return Vector

Overlaps() public method

public Overlaps ( BoundingBox b ) : bool
b BoundingBox
return bool

ToString() public method

public ToString ( ) : string
return string

Union() public static method

public static Union ( BoundingBox b, BoundingBox b2 ) : BoundingBox
b BoundingBox
b2 BoundingBox
return BoundingBox

Union() public static method

public static Union ( BoundingBox b, Point p ) : BoundingBox
b BoundingBox
p Point
return BoundingBox

Property Details

pMax public property

public Point pMax
return Point

pMin public property

public Point pMin
return Point