v4.3

Curve in three-dimensional space. More...

Public Member Functions

self Shift (number dx, number dy, number dz)
 Shifts the curve by the specified values ​​along the coordinate axes.
self Shift (Vector3D vector)
 Shifts the curve by vector.
self Rotate (Axis3D axis, number angle)
 Rotates the curve around 'axis' by 'angle'.
self Scale (Point3D point, number xScale, number yScale, number zScale)
 Scales the curve along two axes relative to a fixed point.
self Transform (Matrix3D matrix)
 Transform according to the matrix.
Curve3D Clone ()
 Returns a copy of the curve.
self Trim (Point3D startPoint, Point3D endPoint)
 Trims the curve by two points.
self Invert ()
 Inverts the direction of the curve.
Point3D GetStartPoint ()
 Returns the start point of the curve.
Point3D GetEndPoint ()
 Returns the end point of the curve.
boolean operator== (Curve3D other)
 Checks for equality.
boolean operator~= (Curve3D other)
 Checks for inequality.
Vector3D GetTangent (Point3D point)
 Calculates the tangent vector at a given point.
number GetLength ()
 Returns the length of the curve.
Point3D GetPointAtDistance (number distance)
 Returns the point on the curve at a given distance from the start point.
boolean IsClosed ()
 Checks if the curve is closed.
self Extend (EndType endType, number length)
 Extends the curve by the specified length.
Point3D GetPointProjection (Point3D point, boolean oExtension)
 Returns an orthogonal projection of the point to the curve. If there is more than one orthogonal point projection, the closest one is returned. If there is more than one projection at the same distance, the one closest to the start of the curve is returned.

Detailed Description

Curve in three-dimensional space.

Member Function Documentation

◆ Extend()

self Extend ( EndType endType,
number length )

Extends the curve by the specified length.

Parameters
endTypeCurve end to extend. Acceptable values: EndType.Start, EndType.End.
lengthLength by which the curve will be extended.
Since
v4.3

◆ GetLength()

number GetLength ( )

Returns the length of the curve.

Since
v4.3

◆ GetPointAtDistance()

Point3D GetPointAtDistance ( number distance)

Returns the point on the curve at a given distance from the start point.

Parameters
distanceThe distance along the curve.
Since
v4.3

◆ GetPointProjection()

Point3D GetPointProjection ( Point3D point,
boolean oExtension )

Returns an orthogonal projection of the point to the curve. If there is more than one orthogonal point projection, the closest one is returned. If there is more than one projection at the same distance, the one closest to the start of the curve is returned.

Parameters
oExtension[opt] true - returns the projection to the extended curve. false - returns the projection to the initial curve. Default value is false.
Since
v4.3

◆ GetTangent()

Vector3D GetTangent ( Point3D point)

Calculates the tangent vector at a given point.

Parameters
pointPoint on curve.
Since
v4.3

◆ IsClosed()

boolean IsClosed ( )

Checks if the curve is closed.

Since
v4.3

◆ Rotate()

self Rotate ( Axis3D axis,
number angle )

Rotates the curve around 'axis' by 'angle'.

Parameters
axisAxis of rotation.
angleThe angle in radians.

◆ Shift()

self Shift ( Vector3D vector)

Shifts the curve by vector.

Since
v4.2