Table of contents

Public class

Signature
class CubicBezier2d extends Polyline2d {}
References

Polyline2d

Source

packages/editor/src/lib/primitives/geometry/CubicBezier2d.ts


Constructor

Public constructor

Constructs a new instance of the CubicBezier2d class

Parameters
NameDescription

config

Omit<
  Geometry2dOptions,
  'isClosed' | 'isFilled'
> & {
  cp1: Vec
  cp2: Vec
  end: Vec
  start: Vec
}
References

Vec


Properties

a

Public property

Signature
a: Vec
References

Vec


b

Public property

Signature
b: Vec
References

Vec


c

Public property

Signature
c: Vec
References

Vec


d

Public property

Signature
d: Vec
References

Vec


Methods

getVertices()

Public method

Signature
getVertices(): Vec[]
References

Vec


midPoint()

Public method

Signature
midPoint(): Vec
References

Vec


nearestPoint()

Public method

Signature
nearestPoint(A: Vec): Vec
Parameters
NameDescription

A

Vec
Returns
Vec
References

Vec


createTLUserCubicSpline2d