BezierSegment

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

ConstructorDescription
BezierSegment(PointF startPoint, PointF firstControlPoint, PointF secondControlPoint, PointF endPoint)Initializes a new instance of the BezierSegment class.

Methods

MethodDescription
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:

ParameterTypeDescription
startPointPointFThe start point.
firstControlPointPointFThe first control point.
secondControlPointPointFThe second control point.
endPointPointFThe 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:

ParameterTypeDescription
objjava.lang.ObjectThe other object.

Returns: boolean - The equality comparison result.

hashCode()

public int hashCode()

Get hash code of the current object.

Returns: int - The hash code.