| Package | alternativa.engine3d.core |
| Class | public class BoundBox |
| Inheritance | BoundBox Object |
| Property | Defined By | ||
|---|---|---|---|
| maxX : Number = -1e+22
Right face. | BoundBox | ||
| maxY : Number = -1e+22
Ftont face. | BoundBox | ||
| maxZ : Number = -1e+22
Top face. | BoundBox | ||
| minX : Number = 1e+22
Left face. | BoundBox | ||
| minY : Number = 1e+22
Back face. | BoundBox | ||
| minZ : Number = 1e+22
Bottom face. | BoundBox | ||
| Method | Defined By | ||
|---|---|---|---|
Duplicates an instance of BoundBox. | BoundBox | ||
intersectRay(origin:Vector3D, direction:Vector3D):Boolean
Checks if the ray crosses the BoundBox. | BoundBox | ||
reset():void
Resets all bounds values to its initial state. | BoundBox | ||
toString():String
Returns a string representation of BoundBox. | BoundBox | ||
| maxX | property |
public var maxX:Number = -1e+22Right face.
| maxY | property |
public var maxY:Number = -1e+22Ftont face.
| maxZ | property |
public var maxZ:Number = -1e+22Top face.
| minX | property |
public var minX:Number = 1e+22Left face.
| minY | property |
public var minY:Number = 1e+22Back face.
| minZ | property |
public var minZ:Number = 1e+22Bottom face.
| clone | () | method |
public function clone():BoundBox
Duplicates an instance of BoundBox.
BoundBox — New BoundBox instance with same set of properties.
|
| intersectRay | () | method |
public function intersectRay(origin:Vector3D, direction:Vector3D):Boolean
Checks if the ray crosses the BoundBox.
Parameters
origin:Vector3D — Ray origin.
| |
direction:Vector3D — Ray direction.
|
Boolean — true if intersection was found and false otherwise.
|
| reset | () | method |
public function reset():voidResets all bounds values to its initial state.
| toString | () | method |
public function toString():String
Returns a string representation of BoundBox.
String — A string representation of BoundBox.
|