Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Spline

Index

Constructors

constructor

Properties

points

points: Point[]

vertices

vertices: Point[]

Methods

add

clear

  • clear(): void
  • Returns void

compute

  • compute(mode?: string, detail?: number): void
  • Parameters

    • mode: string = 'clamped'
    • detail: number = 20

    Returns void

copy

normal

  • normal(p1: number, p2: number, p3: number, p4: number, t: number): Vector
  • Parameters

    • p1: number
    • p2: number
    • p3: number
    • p4: number
    • t: number

    Returns Vector

point

  • point(p1: number, p2: number, p3: number, p4: number, t: number): Point
  • Parameters

    • p1: number
    • p2: number
    • p3: number
    • p4: number
    • t: number

    Returns Point

reverse

rotate

scale

tangent

  • tangent(p1: number, p2: number, p3: number, p4: number, t: number): Vector
  • Parameters

    • p1: number
    • p2: number
    • p3: number
    • p4: number
    • t: number

    Returns Vector

translate

  • translate(x: any, y: any): Spline
  • Parameters

    • x: any
    • y: any

    Returns Spline