Skip to main content
Version: Next

Class: Vector3Pool

Defined in: packages/utilities/src/three/Vector3Pool.ts:11

Beta

Represents a pool of Vector3 objects that can be reused.

Constructors

Constructor

new Vector3Pool(size): Vector3Pool

Defined in: packages/utilities/src/three/Vector3Pool.ts:20

Beta

Creates a new Vector3Pool instance.

Parameters

size

number = 30

The size of the pool (default: 30)

Returns

Vector3Pool

Methods

getNext()

getNext(copyFrom?): Vector3

Defined in: packages/utilities/src/three/Vector3Pool.ts:30

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