Skip to main content

Module: Math/Functions/VisitAll

Functions

VisitAll

VisitAll(startPoint, endPoint, visitor?): number[]

Visit All


Given a starting point and an end point it will visit all voxels that are between them.

Parameters

NameType
startPointPosition3Matrix
endPointPosition3Matrix
visitor(x: number, y: number, z: number) => boolean

Returns

number[]

an array of numbers with a stride of 3 for positions

Defined in

divinevoxel/core/src/Math/Functions/VisitAll.ts:11