JBBox¶
-
struct
JBBox
: System.ValueType Bounding Box defined through min and max vectors. Member of the math namespace, so every method has it’s ‘by reference’ equivalent to speed up time critical math operations.
-
JVector
Min
The maximum point of the box.
-
JVector
Max
The minimum point of the box.
-
JBBox
LargeBox
Returns the largest box possible.
-
JBBox
SmallBox
Returns the smalltest box possible.
-
readonly JVector
Center
-
void
InverseTransform
(ref JVector position, ref JMatrix orientation) Parameters: - (ref) position (Jitter.LinearMath.JVector) –
- (ref) orientation (Jitter.LinearMath.JMatrix) –
-
void
Transform
(ref JMatrix orientation) Parameters: - (ref) orientation (Jitter.LinearMath.JMatrix) –
-
bool
SegmentIntersect
(ref JVector origin, ref JVector direction) Parameters: - (ref) origin (Jitter.LinearMath.JVector) –
- (ref) direction (Jitter.LinearMath.JVector) –
-
bool
RayIntersect
(ref JVector origin, ref JVector direction) Parameters: - (ref) origin (Jitter.LinearMath.JVector) –
- (ref) direction (Jitter.LinearMath.JVector) –
-
bool
SegmentIntersect
(JVector origin, JVector direction) Parameters: - origin (Jitter.LinearMath.JVector) –
- direction (Jitter.LinearMath.JVector) –
-
bool
RayIntersect
(JVector origin, JVector direction) Parameters: - origin (Jitter.LinearMath.JVector) –
- direction (Jitter.LinearMath.JVector) –
-
Jitter.LinearMath.ContainmentType
Contains
(JVector point) Checks wether a point is within a box or not.
Parameters: - point (Jitter.LinearMath.JVector) –
Returns:
-
Jitter.LinearMath.ContainmentType
Contains
(ref JVector point) Parameters: - (ref) point (Jitter.LinearMath.JVector) –
-
void
GetCorners
(Jitter.LinearMath.JVector[] corners) Retrieves the 8 corners of the box.
Parameters: - corners (Jitter.LinearMath.JVector[]) –
-
void
AddPoint
(JVector point) Parameters: - point (Jitter.LinearMath.JVector) –
-
void
AddPoint
(ref JVector point) Parameters: - (ref) point (Jitter.LinearMath.JVector) –
-
JBBox
CreateFromPoints
(Jitter.LinearMath.JVector[] points) Expands a bounding box with the volume 0 by all points given.
Parameters: - points (Jitter.LinearMath.JVector[]) – A array of JVector.
Returns: The resulting bounding box containing all points.
-
Jitter.LinearMath.ContainmentType
Contains
(JBBox box) Checks whether another bounding box is inside, outside or intersecting this box.
Parameters: - box (Jitter.LinearMath.JBBox) – The other bounding box to check.
Returns: The ContainmentType of the box.
-
Jitter.LinearMath.ContainmentType
Contains
(ref JBBox box) Parameters: - (ref) box (Jitter.LinearMath.JBBox) –
-
JBBox
CreateMerged
(JBBox original, JBBox additional) Creates a new box containing the two given ones.
Parameters: - original (Jitter.LinearMath.JBBox) – First box.
- additional (Jitter.LinearMath.JBBox) – Second box.
Returns: A JBBox containing the two given boxes.
-
void
CreateMerged
(ref JBBox original, ref JBBox additional, ref JBBox result) Parameters: - (ref) original (Jitter.LinearMath.JBBox) –
- (ref) additional (Jitter.LinearMath.JBBox) –
- (ref) result (Jitter.LinearMath.JBBox) –
-
float
get_Perimeter
()
-
JVector