Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a slider's path.

Hierarchy

  • SliderPath

Index

Constructors

Properties

calculatedPath: Vector2[] = []

The calculated path of the slider.

controlPoints: Vector2[]

The control points (anchor points) of the slider.

cumulativeLength: number[] = []

The cumulative length of the slider.

expectedDistance: number

Distance that is expected when calculating slider path.

isInitialized: boolean = false

Whether or not the instance has been initialized.

pathType: PathType

The path type of the slider.

Methods

  • calculateCumulativeLength(): void
  • calculatePath(): void
  • ensureInitialized(): void
  • positionAt(progress: number): Vector2
  • Computes the position on the slider at a given progress that ranges from 0 (beginning of the path) to 1 (end of the path).

    Parameters

    • progress: number

      Ranges from 0 (beginning of the path) to 1 (end of the path).

    Returns Vector2

Generated using TypeDoc