Options
All
  • Public
  • Public/Protected
  • All
Menu
classdesc

A HobbyCurve/HobbyPath calculation class: compute a set of optimal cubic Bézier curves from a sequence of vertices.

requires

CubicBezierCurve

requires

Vertex

Hierarchy

  • HobbyPath

Index

Constructors

Properties

Methods

Object literals

Constructors

constructor

Properties

Private vertices

vertices: Array<Vertex>
member

{Array} vertices

memberof

HobbyPath

instance

Methods

addPoint

generateCurve

  • Generate a sequence of cubic Bézier curves from the point set.

    name

    generateCurve

    memberof

    HobbyPath

    instance

    Parameters

    • Optional circular: boolean

      Specify if the path should be closed.

    • Optional omega: number

      (default=0) An optional tension parameter.

    Returns Array<CubicBezierCurve>

    Array

Private hobbyControls

  • Computes the control point coordinates for a Hobby curve through the points given.

    name

    hobbyControls

    memberof

    HobbyPath

    instance

    Parameters

    • Optional circular: boolean

      If true, then the path will be closed.

    • Optional omega: number

      The 'curl' or the path.

    Returns IControlPoints

    An object with two members: startControlPoints and endControlPoints (Array).

Object literals

Static utils

utils: object

normalize

rho

  • rho(a: number, b: number): number

rotate

rotateAngle

sherman

  • sherman(a: Array<number>, b: Array<number>, c: Array<number>, d: Array<number>, s: number, t: number): Array<number>

thomas

  • thomas(a: Array<number>, b: Array<number>, c: Array<number>, d: Array<number>): Array<number>

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Private property
  • Private method
  • Static property
  • Static method

Generated using TypeDoc