java.lang.Object
com.esri.arcgisruntime.geometry.Segment
com.esri.arcgisruntime.geometry.CubicBezierSegment
A cubic Bezier curve for use in a multipart geometry.
- Since:
- 100.12.0
-
Constructor Summary
ConstructorDescriptionCubicBezierSegment
(Point startPoint, Point controlPoint1, Point controlPoint2, Point endPoint, SpatialReference spatialReference) Creates a bezier segment based on a start and end point and two control points at tangents to the start and end points. -
Method Summary
Modifier and TypeMethodDescriptionGets a point tangent to the start of the segment.Gets a point tangent to the end of the segment.toString()
Returns a string representation of this CubicBezierSegment instance.Methods inherited from class com.esri.arcgisruntime.geometry.Segment
getEndPoint, getSpatialReference, getStartPoint, isClosed, isCurve
-
Constructor Details
-
CubicBezierSegment
public CubicBezierSegment(Point startPoint, Point controlPoint1, Point controlPoint2, Point endPoint, SpatialReference spatialReference) Creates a bezier segment based on a start and end point and two control points at tangents to the start and end points.The spatial reference parameter is used if the points have a null spatial reference. If more than one spatial reference is supplied (as a parameter or as a property of a
Point
parameter), they must all be equal.The z and m values of the start and end points (if present) are used in the
CubicBezierSegment
. The z and m values of the control points (if present) are ignored.- Parameters:
startPoint
- the start point of the segmentcontrolPoint1
- a point tangent to the start of the segmentcontrolPoint2
- a point tangent to the end of the segmentendPoint
- the end point of the segmentspatialReference
- a spatial reference to use for the segment if the points do not have spatial references set, may be null- Throws:
IllegalArgumentException
- if startPoint is nullIllegalArgumentException
- if controlPoint1 is nullIllegalArgumentException
- if controlPoint2 is nullIllegalArgumentException
- if endPoint is null- Since:
- 100.12.0
-
-
Method Details
-
getControlPoint1
Gets a point tangent to the start of the segment.- Returns:
- a point tangent to the start of the segment
- Since:
- 100.12.0
-
getControlPoint2
Gets a point tangent to the end of the segment.- Returns:
- a point tangent to the end of the segment
- Since:
- 100.12.0
-
toString
Returns a string representation of this CubicBezierSegment instance. The format and content of this string is subject to change without notice.This value may be useful for debugging purposes, but cannot be relied upon for persistence purposes.
-