Class: Vector3Pool
Beta
Represents a pool of Vector3 objects that can be reused.
Constructors
new Vector3Pool()
new Vector3Pool(
size
):Vector3Pool
Beta
Creates a new Vector3Pool instance.
Parameters
• size: number
= 30
The size of the pool (default: 30)
Returns
Defined in
packages/utilities/src/three/Vector3Pool.ts:20
Methods
getNext()
getNext(
copyFrom
?):Vector3
Beta
Gets the next available Vector3 object from the pool.
Parameters
• copyFrom?: Vector3
An optional Vector3 object to copy the values from
Returns
Vector3
The next available Vector3 object