Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "curve"

Index

Classes

Variables

Object literals

Variables

Private Const DEGREE_LIMIT

DEGREE_LIMIT: number = DEGREES[1]

Private Let getCornerAtEnd

getCornerAtEnd: function = memoize(function(curve: Curve) {let tangents = [tangent(curve.ps, 1),tangent(curve.next.ps, 0)];let crossTangents = cross(tangents[0], tangents[1]);return new Corner(tangents,crossTangents,crossTangents < 0,crossTangents > 0,crossTangents < -DEGREE_LIMIT,crossTangents > +DEGREE_LIMIT);})

Returns information about the corner created at the end of this curve (at t === 1) and the start of the next curve (at t === 0).

Type declaration

    • (a: T): U
    • Parameters

      • a: T

      Returns U

Object literals

Private Const DEGREES

DEGREES: object

Angle in degrees to radians.

0.25

0.25: number = 0.005

1

1: number = 0.0167

16

16: number = 0.2756

4

4: number = 0.0698

Generated using TypeDoc