Interface IBezierCurve
Provides access to members that identify third degree bezier curve segments and defines their properties.
[Guid("19B8936C-B159-11D1-A2D3-0000F8775FBF")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IBezierCurve : ICurve, IGeometry
Remarks

Properties
Degree
The degree of the Bezier curve. For third degree Beziers, this is always 3.
int Degree { get; }
Property Value
Dimension
esriGeometryDimension Dimension { get; }
Property Value
Envelope
IEnvelope Envelope { get; }
Property Value
FromPoint
IPoint FromPoint { get; set; }
Property Value
GeometryType
esriGeometryType GeometryType { get; }
Property Value
IsClosed
bool IsClosed { get; }
Property Value
IsEmpty
bool IsEmpty { get; }
Property Value
Length
double Length { get; }
Property Value
SpatialReference
ISpatialReference SpatialReference { get; set; }
Property Value
ToPoint
IPoint ToPoint { get; set; }
Property Value
Methods
GeoNormalize()
void GeoNormalize()
GeoNormalizeFromLongitude(double)
void GeoNormalizeFromLongitude(double Longitude)
Parameters
Longitudedouble
GetSubcurve(double, double, bool, out ICurve)
void GetSubcurve(double fromDistance, double toDistance, bool asRatio, out ICurve outSubcurve)
Parameters
Project(ISpatialReference)
void Project(ISpatialReference newReferenceSystem)
Parameters
newReferenceSystemISpatialReference
PutCoord(int, IPoint)
Sets the specified (0 <= index < 4) control point of this Bezier curve.
void PutCoord(int Index, IPoint controlPoint)
Parameters
Remarks
Use PutCoords to set all control points simultaneously. PutCoord should not be use to create a new BezierCurve, use PutCoords instead. PutCoord should only be use to modify an existing and well define BezierCurve.

PutCoords(int, ref IPoint)
Sets this Bezier curve's control points from an array of between 1 to 4 input points.
void PutCoords(int numPoints, ref IPoint controlPoints)
Parameters
Remarks
PutWKSCoords(ref WKSPoint)
Sets this Bezier curve's control points from the array of 4 input point structures.
void PutWKSCoords(ref WKSPoint controlPoints)
Parameters
controlPointsWKSPoint
QueryChordLengthTangentAtFrom(IPoint, ref bool)
Returns tangent vector at 'from' point, based on chord length parametrization; and whether it has been set by user or by smoothing process.
void QueryChordLengthTangentAtFrom(IPoint tangent, ref bool setByUser)
Parameters
QueryChordLengthTangentAtTo(IPoint, ref bool)
Returns tangent vector at 'to' point, based on chord length parametrization; and whether it has been set by user or by smoothing process.
void QueryChordLengthTangentAtTo(IPoint tangent, ref bool setByUser)
Parameters
QueryCoord(int, IPoint)
Copies the specified control point of this Bezier curve into the input point.
void QueryCoord(int Index, IPoint controlPoint)
Parameters
Remarks
QueryCoords(ref IPoint)
Copies this Bezier curve's control points into the array of 4 existing points.
void QueryCoords(ref IPoint controlPoints)
Parameters
controlPointsIPoint
Remarks
QueryEnvelope(IEnvelope)
void QueryEnvelope(IEnvelope outEnvelope)
Parameters
outEnvelopeIEnvelope
QueryFromPoint(IPoint)
void QueryFromPoint(IPoint from)
Parameters
fromIPoint
QueryInflectionPoint(IPoint)
Finds inflection point; sets it empty if none exists.
void QueryInflectionPoint(IPoint inflectionPoint)
Parameters
inflectionPointIPoint
Remarks
Most Bezier Curves have 0 or 1 Inflection Points, but a few constructions result in Bezier Curves with 2 Inflection Points. For these Bezier Curve, the only way to find both Inflection Points is to Reverse the Orientation of the Bezier Curve and call QueryInflectionPoint a second time. If the Inflection Points are not equal, the Bezier Curve has two Inflection Points, otherwise, it only has a single Inflection Point.

private void QueryInflectionPoint()
{
//Control points
IPoint[] controlPoints = new IPoint[4];
//Bezier FromPoint / From Tangent FromPoint
controlPoints[0] = new ESRI.ArcGIS.Geometry.Point();
//From Tangent ToPoint
controlPoints[1] = new ESRI.ArcGIS.Geometry.Point();
//To Tangent FromPoint
controlPoints[2] = new ESRI.ArcGIS.Geometry.Point();
//Bezier To Point / To Tangent ToPoint
controlPoints[3] = new ESRI.ArcGIS.Geometry.Point();
//Define the Bezier Control Points. This is a simple S-Curve.
controlPoints[0].PutCoords(100, 100);
controlPoints[1].PutCoords(150, 200);
controlPoints[2].PutCoords(250, 0);
controlPoints[3].PutCoords(400, 100);
IBezierCurveGEN bezierCurve = new BezierCurve();
bezierCurve.PutCoords(ref controlPoints);
//Report control Point
IPoint[] outControlPoints = new IPoint[4];
for (int i = 0; i < controlPoints.Length; i++)
{
outControlPoints[i] = new ESRI.ArcGIS.Geometry.Point();
}
bezierCurve.QueryCoords(ref outControlPoints);
String report = "Control Points \n";
for (int i = 0; i < outControlPoints.Length; i++)
{
report = report + outControlPoints[i].X + " , " + outControlPoints[i].Y + " \n";
}
IPoint infelctionPoint = new ESRI.ArcGIS.Geometry.Point(); ;
bezierCurve.QueryInflectionPoint(infelctionPoint);
report = report + "Inflection Point : " + infelctionPoint.X + " , " + infelctionPoint.Y;
System.Windows.Forms.MessageBox.Show(report);
}
QueryNormal(esriSegmentExtension, double, bool, double, ILine)
void QueryNormal(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine normal)
Parameters
extensionesriSegmentExtensionDistanceAlongCurvedoubleasRatioboolLengthdoublenormalILine
QueryPoint(esriSegmentExtension, double, bool, IPoint)
void QueryPoint(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, IPoint outPoint)
Parameters
extensionesriSegmentExtensionDistanceAlongCurvedoubleasRatiobooloutPointIPoint
QueryPointAndDistance(esriSegmentExtension, IPoint, bool, IPoint, ref double, ref double, ref bool)
void QueryPointAndDistance(esriSegmentExtension extension, IPoint inPoint, bool asRatio, IPoint outPoint, ref double DistanceAlongCurve, ref double distanceFromCurve, ref bool bRightSide)
Parameters
extensionesriSegmentExtensioninPointIPointasRatiobooloutPointIPointDistanceAlongCurvedoubledistanceFromCurvedoublebRightSidebool
QueryTangent(esriSegmentExtension, double, bool, double, ILine)
void QueryTangent(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine tangent)
Parameters
extensionesriSegmentExtensionDistanceAlongCurvedoubleasRatioboolLengthdoubletangentILine
QueryToPoint(IPoint)
void QueryToPoint(IPoint to)
Parameters
toIPoint
QueryWKSCoords(out WKSPoint)
Copies this Bezier curve's control points into the array of 4 existing point structures.
void QueryWKSCoords(out WKSPoint controlPoints)
Parameters
controlPointsWKSPoint
ReverseOrientation()
void ReverseOrientation()
SetChordLengthTangentAtFrom(IPoint, bool)
Establishes tangent vector at 'from' point, based on chord length parametrization; and sets flag whether it has been set by user or by smoothing process.
void SetChordLengthTangentAtFrom(IPoint tangent, bool setByUser)
Parameters
SetChordLengthTangentAtTo(IPoint, bool)
Establishes tangent vector at 'to' point, based on chord length parametrization; and sets flag whether it has been set by user or by smoothing process.
void SetChordLengthTangentAtTo(IPoint tangent, bool setByUser)
Parameters
SetEmpty()
void SetEmpty()
SnapToSpatialReference()
void SnapToSpatialReference()