Skip to main content

Class: PathSegment

PathBuilding.PathSegment(additionopt, predictionopt)

Represents a path segment that accumulates path points.This class can be used to accumulate added points from the path producer and pass them to the subsequent pipeline stages as a batch.

Constructor

new PathSegment(additionopt, predictionopt)

Parameters:
NameTypeAttributesDefaultDescription
additionArray.<float>Float32Array<optional>[]
predictionArray.<float>Float32Array<optional>[]

Since:

  • version 3.0

Methods

add(phase, added, predicted)

Adds a point to the path segment

Parameters:
NameTypeDescription
phasePathBuilding.Pipeline.PhaseThe phase of the point
addedArray.<float>Float32Array
predictedArray.<float>Float32Array

clone() → PathBuilding.PathSegment

Clones path segment

Returns:

Path segment copy

Type

PathBuilding.PathSegment

reset()

Resets the path segment to its initial state

Home

Classes