Skip to main content

Curve2D

Hierarchy

Constructors

constructor

new Curve2D(handle)

Parameters

NameType
handleHandle_Geom2d_Curve

Overrides

WrappingObj.constructor

Defined in

lib2d/Curve2D.ts:21

Properties

_boundingBox

_boundingBox: null | BoundingBox2d

Defined in

lib2d/Curve2D.ts:20

Accessors

boundingBox

get boundingBox(): BoundingBox2d

Returns

BoundingBox2d

Defined in

lib2d/Curve2D.ts:30


firstParameter

get firstParameter(): number

Returns

number

Defined in

lib2d/Curve2D.ts:66


firstPoint

get firstPoint(): Point2D

Returns

Point2D

Defined in

lib2d/Curve2D.ts:58


geomType

get geomType(): CurveType

Returns

CurveType

Defined in

lib2d/Curve2D.ts:79


innerCurve

get innerCurve(): Geom2d_Curve

Returns

Geom2d_Curve

Defined in

lib2d/Curve2D.ts:47


lastParameter

get lastParameter(): number

Returns

number

Defined in

lib2d/Curve2D.ts:70


lastPoint

get lastPoint(): Point2D

Returns

Point2D

Defined in

lib2d/Curve2D.ts:62


repr

get repr(): string

Returns

string

Defined in

lib2d/Curve2D.ts:41


wrapped

get wrapped(): Type

Returns

Type

Inherited from

WrappingObj.wrapped

Defined in

register.ts:39

set wrapped(newWrapped): void

Parameters

NameType
newWrappedType

Returns

void

Inherited from

WrappingObj.wrapped

Defined in

register.ts:44

Methods

adaptor

adaptor(): Geom2dAdaptor_Curve

Returns

Geom2dAdaptor_Curve

Defined in

lib2d/Curve2D.ts:74


clone

clone(): Curve2D

Returns

Curve2D

Defined in

lib2d/Curve2D.ts:86


delete

delete(): void

Returns

void

Inherited from

WrappingObj.delete

Defined in

register.ts:54


distanceFrom

distanceFrom(element): number

Parameters

NameType
elementPoint2D | Curve2D

Returns

number

Defined in

lib2d/Curve2D.ts:149


distanceFromCurve

Private distanceFromCurve(curve): number

Parameters

NameType
curveCurve2D

Returns

number

Defined in

lib2d/Curve2D.ts:117


distanceFromPoint

Private distanceFromPoint(point): number

Parameters

NameType
pointPoint2D

Returns

number

Defined in

lib2d/Curve2D.ts:94


isOnCurve

isOnCurve(point): boolean

Parameters

NameType
pointPoint2D

Returns

boolean

Defined in

lib2d/Curve2D.ts:157


parameter

parameter(point, precision?): number

Parameters

NameTypeDefault value
pointPoint2Dundefined
precisionnumber1e-9

Returns

number

Defined in

lib2d/Curve2D.ts:161


reverse

reverse(): void

Returns

void

Defined in

lib2d/Curve2D.ts:90


splitAt

splitAt(points, precision?): Curve2D[]

Parameters

NameTypeDefault value
pointsnumber[] | Point2D[]undefined
precisionnumber1e-9

Returns

Curve2D[]

Defined in

lib2d/Curve2D.ts:218


tangentAt

tangentAt(index): Point2D

Parameters

NameType
indexnumber | Point2D

Returns

Point2D

Defined in

lib2d/Curve2D.ts:193


value

value(parameter): Point2D

Parameters

NameType
parameternumber

Returns

Point2D

Defined in

lib2d/Curve2D.ts:51