Skip to main content

Polynomial2D

class Polynomial2D 

Constructors

constructor

Parameters

Properties

c0

readonly public c0: Vector2Polynomial

c1

readonly public c1: Vector2Polynomial

c2

readonly public c2?: Vector2

c3

readonly public c3?: Vector2

x

readonly public x: Polynomial

y

readonly public y: Polynomial

Methods

differentiate

public differentiaten: number = 1: Polynomial2D

Parameters

  • n: number = 1

eval

public evalt: numberderivative: number = 0: Vector2

Parameters


evalDerivative

public evalDerivativet: number: Vector2

Parameters

  • t: number

getBounds

public getBounds(): BBox

Calculate the tight axis-aligned bounds of the curve in the unit interval.


split

public splitu: number: Polynomial2DPolynomial2D

Parameters

  • u: number