v2.0
 
Curve2D Class Reference

Curve in two-dimensional space. More...

Public Member Functions

self Shift (number dx, number dy)
 Shifts the curve by the specified values ​​along the coordinate axes.
 
self Rotate (Point2D point, number angle)
 Rotates the curve around 'point' by 'angle'.
 
self Scale (Point2D point, number xScale, number yScale)
 Scales the curve along two axes relative to a fixed point.
 
self Transform (Matrix2D matrix)
 Transform according to the matrix.
 
Curve2D Clone ()
 Returns a copy of the curve.
 
self Invert ()
 Inverts the direction of the curve.
 
Point2D GetStartPoint ()
 Returns the start point of the curve.
 
Point2D GetEndPoint ()
 Returns the end point of the curve.
 
BoundingRect GetBounds ()
 Returns the curve bounding rectangle.
 
self Trim (Point2D startPoint, Point2D endPoint)
 Trims the curve by two points.
 
boolean operator== (Curve2D other)
 Checks for equality.
 
boolean operator~= (Curve2D other)
 Checks for inequality.
 

Detailed Description

Curve in two-dimensional space.

Member Function Documentation

◆ Rotate()

self Rotate ( Point2D point,
number angle )

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

Parameters
pointCenter of rotation.
angleThe angle in radians.