Class LinearPath2

Hierarchy

  • LinearPath2

Constructors

Properties

Methods

Constructors

Properties

controlPoints: Vector2[]

An array of Vector2 objects representing the control points of the path

Methods

  • Gets the point at a given distance along the path

    Returns

    The point at the given distance on the path, or null if the segment index is out of bounds

    Parameters

    • segment: number

      The segment index

    • t: number

      The value (between 0 and 1) along the segment to get the point

    Returns null | Vector2

Generated using TypeDoc