v1.1
|
|
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. | |
Curve in two-dimensional space.
self Rotate | ( | Point2D | point, |
number | angle ) |
Rotates the curve around 'point' by 'angle'.
point | Center of rotation. |
angle | The angle in radians. |