v1.1
 
Curve2D Class Reference

Curve in two-dimensional space. More...

Public Member Functions

self Shift (number dx, number dy)
 Shifts the curve.
 
self Rotate (Point2D point, number angle)
 Rotates the curve around 'point' by 'angle'.
 
self Scale (Point2D point, number x_scale, number y_scale)
 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 start_point, Point2D end_point)
 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.