WorldOctantWrapper
A world octant wrapper that stores positional information.
Constructor Summary
Public Constructor | ||
public |
constructor(octant: WorldOctant, id: WorldOctantId) Constructs a new octant wrapper. |
Member Summary
Public Members | ||
public |
A world octant identifier. |
|
public |
max: Vector3 The upper bounds. |
|
public |
min: Vector3 The lower bounds. |
|
public |
A world octant. |
Method Summary
Public Methods | ||
public |
Clones this octant wrapper. |
|
public |
containsPoint(point: Vector3): Boolean Checks if the given point lies inside the boundaries of this wrapper. |
|
public |
copy(octantWrapper: WorldOctantWrapper): WorldOctantWrapper Copies the given octant wrapper. |
|
public |
getCenter(target: Vector3): Vector3 Computes the center of the wrapped octant. |
|
public |
getDimensions(target: Vector3): Vector3 Computes the size of the wrapped octant. |
Public Constructors
public constructor(octant: WorldOctant, id: WorldOctantId) source
Constructs a new octant wrapper.
Params:
Name | Type | Attribute | Description |
octant | WorldOctant |
|
An octant. |
id | WorldOctantId |
|
The identifier of the octant. |
Public Members
Public Methods
public containsPoint(point: Vector3): Boolean source
Checks if the given point lies inside the boundaries of this wrapper.
Params:
Name | Type | Attribute | Description |
point | Vector3 | A point. |
public copy(octantWrapper: WorldOctantWrapper): WorldOctantWrapper source
Copies the given octant wrapper.
Params:
Name | Type | Attribute | Description |
octantWrapper | WorldOctantWrapper | An octant wrapper. |
public getCenter(target: Vector3): Vector3 source
Computes the center of the wrapped octant.
Params:
Name | Type | Attribute | Description |
target | Vector3 |
|
A target vector. If none is provided, a new one will be created. |
Return:
Vector3 | A vector that describes the center of the octant. |
public getDimensions(target: Vector3): Vector3 source
Computes the size of the wrapped octant.
Params:
Name | Type | Attribute | Description |
target | Vector3 |
|
A target vector. If none is provided, a new one will be created. |
Return:
Vector3 | A vector that describes the size of the octant. |