Global

Methods

getSubCurveAt(tStart, tEnd) → {CubicBezierCurve}

Get a sub curve at the given start end end offsets (values between 0.0 and 1.0). tStart >= tEnd is allowed, you will get a reversed sub curve then.
Parameters:
Name Type Description
tStart number – The start offset of the desired sub curve (must be in [0..1]).
tEnd number – The end offset if the desired cub curve (must be in [0..1]).
Source:
Returns:
The sub curve as a new curve.
Type
CubicBezierCurve

setLength(length) → {Line}

Set the length of this vector to the given amount. This only works if this vector is not a null vector.
Parameters:
Name Type Description
length number The desired length.
Source:
Returns:
this (for chaining)
Type
Line

Type Definitions

Bounds

Type:
  • Object
Properties:
Name Type Description
min Vertex The upper left position.
max Vertex The lower right position;.
Source: