BezierSegment
Contents
[
Hide
]Inheritance: java.lang.Object, com.aspose.imaging.ShapeSegment, com.aspose.imaging.shapesegments.LineSegment
public final class BezierSegment extends LineSegment
The bezier segment going from one point to the next point and using two control points.
Constructors
Constructor | Description |
---|---|
BezierSegment(PointF startPoint, PointF firstControlPoint, PointF secondControlPoint, PointF endPoint) | Initializes a new instance of the BezierSegment class. |
Methods
Method | Description |
---|---|
getFirstControlPoint() | Gets the first control point of a bezier spline. |
getSecondControlPoint() | Gets the second control point of a bezier spline. |
equals(Object obj) | Check if objects are equal. |
hashCode() | Get hash code of the current object. |
BezierSegment(PointF startPoint, PointF firstControlPoint, PointF secondControlPoint, PointF endPoint)
public BezierSegment(PointF startPoint, PointF firstControlPoint, PointF secondControlPoint, PointF endPoint)
Initializes a new instance of the BezierSegment
class.
Parameters:
Parameter | Type | Description |
---|---|---|
startPoint | PointF | The start point. |
firstControlPoint | PointF | The first control point. |
secondControlPoint | PointF | The second control point. |
endPoint | PointF | The end point. |
getFirstControlPoint()
public PointF getFirstControlPoint()
Gets the first control point of a bezier spline.
Returns: PointF - The first control point.
getSecondControlPoint()
public PointF getSecondControlPoint()
Gets the second control point of a bezier spline.
Returns: PointF - The second control point.
equals(Object obj)
public boolean equals(Object obj)
Check if objects are equal.
Parameters:
Parameter | Type | Description |
---|---|---|
obj | java.lang.Object | The other object. |
Returns: boolean - The equality comparison result.
hashCode()
public int hashCode()
Get hash code of the current object.
Returns: int - The hash code.