Curve2D
Hierarchy
WrappingObj
<Handle_Geom2d_Curve
>↳
Curve2D
Constructors
constructor
• new Curve2D(handle
)
Parameters
Name | Type |
---|---|
handle | Handle_Geom2d_Curve |
Overrides
Defined in
Properties
_boundingBox
• _boundingBox: null
| BoundingBox2d
Defined in
Accessors
boundingBox
• get
boundingBox(): BoundingBox2d
Returns
Defined in
firstParameter
• get
firstParameter(): number
Returns
number
Defined in
firstPoint
• get
firstPoint(): Point2D
Returns
Defined in
geomType
• get
geomType(): CurveType
Returns
Defined in
innerCurve
• get
innerCurve(): Geom2d_Curve
Returns
Geom2d_Curve
Defined in
lastParameter
• get
lastParameter(): number
Returns
number
Defined in
lastPoint
• get
lastPoint(): Point2D
Returns
Defined in
repr
• get
repr(): string
Returns
string
Defined in
wrapped
• get
wrapped(): Type
Returns
Type
Inherited from
WrappingObj.wrapped
Defined in
• set
wrapped(newWrapped
): void
Parameters
Name | Type |
---|---|
newWrapped | Type |
Returns
void
Inherited from
WrappingObj.wrapped
Defined in
Methods
adaptor
▸ adaptor(): Geom2dAdaptor_Curve
Returns
Geom2dAdaptor_Curve
Defined in
clone
▸ clone(): Curve2D
Returns
Defined in
delete
▸ delete(): void
Returns
void
Inherited from
Defined in
distanceFrom
▸ distanceFrom(element
): number
Parameters
Name | Type |
---|---|
element | Point2D | Curve2D |
Returns
number
Defined in
distanceFromCurve
▸ Private
distanceFromCurve(curve
): number
Parameters
Name | Type |
---|---|
curve | Curve2D |
Returns
number
Defined in
distanceFromPoint
▸ Private
distanceFromPoint(point
): number
Parameters
Name | Type |
---|---|
point | Point2D |
Returns
number
Defined in
isOnCurve
▸ isOnCurve(point
): boolean
Parameters
Name | Type |
---|---|
point | Point2D |
Returns
boolean
Defined in
parameter
▸ parameter(point
, precision?
): number
Parameters
Name | Type | Default value |
---|---|---|
point | Point2D | undefined |
precision | number | 1e-9 |
Returns
number
Defined in
reverse
▸ reverse(): void
Returns
void
Defined in
splitAt
▸ splitAt(points
, precision?
): Curve2D
[]
Parameters
Name | Type | Default value |
---|---|---|
points | number [] | Point2D [] | undefined |
precision | number | 1e-9 |
Returns
Curve2D
[]
Defined in
tangentAt
▸ tangentAt(index
): Point2D
Parameters
Name | Type |
---|---|
index | number | Point2D |
Returns
Defined in
value
▸ value(parameter
): Point2D
Parameters
Name | Type |
---|---|
parameter | number |