ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.Geometry Namespace / CubicBezierBuilderEx Class / CubicBezierBuilderEx Constructor / CubicBezierBuilderEx Constructor(MapPoint,MapPoint,MapPoint,MapPoint,SpatialReference)
The point from which the curve starts.
Control point 1 of the cubic bezier.
Control point 2 of the cubic bezier.
The point at which the curve ends.
(Optional) The spatial reference. The default value is null. The spatial references of the input points are ignored.
Example

In This Topic
    CubicBezierBuilderEx Constructor(MapPoint,MapPoint,MapPoint,MapPoint,SpatialReference)
    In This Topic
    Creates a new instance of the CubicBezierBuilderEx class from four control points.
    Syntax

    Parameters

    startPoint
    The point from which the curve starts.
    controlPoint1
    Control point 1 of the cubic bezier.
    controlPoint2
    Control point 2 of the cubic bezier.
    endPoint
    The point at which the curve ends.
    spatialReference
    (Optional) The spatial reference. The default value is null. The spatial references of the input points are ignored.
    Exceptions
    ExceptionDescription
    startPoint or controlPoint1 or controlPoint2 or endPoint is null or empty.
    Example
    Construct a Cubic Bezier - from MapPoints
    // Use a builderEx convenience method or a builderEx constructor.
    
    MapPoint startPt = MapPointBuilderEx.CreateMapPoint(1.0, 1.0, SpatialReferences.WGS84);
    MapPoint endPt = MapPointBuilderEx.CreateMapPoint(2.0, 2.0, SpatialReferences.WGS84);
    
    MapPoint ctrl1Pt = MapPointBuilderEx.CreateMapPoint(1.0, 2.0, SpatialReferences.WGS84);
    MapPoint ctrl2Pt = MapPointBuilderEx.CreateMapPoint(2.0, 1.0, SpatialReferences.WGS84);
    
    // BuilderEx convenience methods don't need to run on the MCT
    CubicBezierSegment bezier = CubicBezierBuilderEx.CreateCubicBezierSegment(startPt, ctrl1Pt, ctrl2Pt, endPt);
    
    // builderEx constructors don't need to run on the MCT
    CubicBezierBuilderEx cbbEx = new CubicBezierBuilderEx(startPt, ctrl1Pt, ctrl2Pt, endPt);
    bezier = cbbEx.ToSegment() as CubicBezierSegment;
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also