gophergfx
    Preparing search index...

    Class LinearPath2

    Index
    controlPoints: Vector2[]

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

    • Gets the point at a given distance along the path

      Parameters

      • segment: number

        The segment index

      • t: number

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

      Returns Vector2 | null

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