Class BezierCurveClass
[Guid("C8970BDC-B15B-11D1-A2D3-0000F8775FBF")]
[ClassInterface(ClassInterfaceType.None)]
public class BezierCurveClass : BezierCurve, IBezierCurveGEN, IBezierCurve3, IBezierCurve2, IBezierCurve, ITransform2D, ICurve3, ICurve2, ISegment, ICurve, IGeometry, IConstructBezierCurve, IProximityOperator, ISupportErrorInfo, IClone, ISegmentM, ISegmentZ, ISegmentID
- Inheritance
-
BezierCurveClass
- Implements
- Inherited Members
Constructors
BezierCurveClass()
public BezierCurveClass()
Explicit Interface Implementations
Assign(IClone)
Assigns the properties of src to the receiver.
virtual void Assign(IClone src)
Parameters
srcIClone
Clone()
Clones the receiver and assigns the result to *clone.
virtual IClone Clone()
Returns
ConstructTangentsAtEndpoints(ILine, ILine)
Constructs a Bezier curve from tangents at both endpoints.
virtual void ConstructTangentsAtEndpoints(ILine pTangentAtFrom, ILine pTangentAtTo)
Parameters
ConvertDistanceMeasureToRatio(double, ref double)
Converts the distance measure to a ratio of the total distance.
virtual void ConvertDistanceMeasureToRatio(double distanceMeasure, ref double distanceRatio)
Parameters
Degree
The degree of the Bezier curve. For third degree Beziers, this is always 3.
virtual int Degree { get; }
Returns
Densify(int, double, out int, out ILine)
Densify segment into the specified number of smaller segments. This method is intended for internal use only.
virtual void Densify(int cInSlots, double maxDeviation, out int pcOutSegments, out ILine segments)
Parameters
Remarks
Densifying individual segments can be accomplished in client code by add the segment to a temporary polyline, then densifying the polyline using one of the methods on IPolycurve. Alternatively, the IGeometryBridge interface on the GeometryEnvironment object can be used.
When using C# you must use the IGeometryBridge interface to call this method.
When using VBNET you must use the IGeometryBridge interface to call this method.
Dimension
virtual esriGeometryDimension Dimension { get; }
Returns
Envelope
virtual IEnvelope Envelope { get; }
Returns
EnvelopeIntersection(IEnvelope, bool, ref double, ref double, ref int, out int)
Finds intersections with clipping envelope; boundaryOverlap is ignored for non-linear segments.
virtual void EnvelopeIntersection(IEnvelope intersectionEnvelope, bool boundaryOverlap, ref double segmentParams, ref double envelopeDistances, ref int numIntersections, out int outcode)
Parameters
intersectionEnvelopeIEnvelopeboundaryOverlapboolsegmentParamsdoubleenvelopeDistancesdoublenumIntersectionsintoutcodeint
FromPoint
virtual IPoint FromPoint { get; set; }
Returns
GeoNormalize()
virtual void GeoNormalize()
GeoNormalizeFromLongitude(double)
virtual void GeoNormalizeFromLongitude(double Longitude)
Parameters
Longitudedouble
GeographicShift(double)
Shift longitudes to the right of splitLongitude. This method is obsolete.
virtual void GeographicShift(double splitLongitude)
Parameters
splitLongitudedouble
GeometryType
virtual esriGeometryType GeometryType { get; }
Returns
GetDistanceAtVertexAttribute(esriGeometryAttributes, double, bool)
Gets the distance corresponding to the attribute value along the segment.
virtual double GetDistanceAtVertexAttribute(esriGeometryAttributes attributeType, double attributeValue, bool asRatio)
Parameters
attributeTypeesriGeometryAttributesattributeValuedoubleasRatiobool
Returns
GetIDs(out int, out int)
Get the IDs on the segment's endpoints.
virtual void GetIDs(out int fromID, out int toID)
Parameters
GetMs(out double, out double)
Get the Ms on the segment's endpoints.
virtual void GetMs(out double fromM, out double toM)
Parameters
GetPointsAtVertexAttribute(esriGeometryAttributes, double, double, out IPointCollection)
Gets the point at the location corresponding to the attribute value.
virtual void GetPointsAtVertexAttribute(esriGeometryAttributes attributeType, double attributeValue, double lateralOffset, out IPointCollection outPoints)
Parameters
attributeTypeesriGeometryAttributesattributeValuedoublelateralOffsetdoubleoutPointsIPointCollection
GetSubSegmentBetweenVertexAttributes(esriGeometryAttributes, double, double, out ISegment)
Gets the segment corresponding to the extent along the segment between the 'from' and 'to' attribute values.
virtual void GetSubSegmentBetweenVertexAttributes(esriGeometryAttributes attributeType, double fromAttribute, double toAttribute, out ISegment outSegment)
Parameters
attributeTypeesriGeometryAttributesfromAttributedoubletoAttributedoubleoutSegmentISegment
GetSubcurve(double, double, bool, out ICurve)
virtual void GetSubcurve(double fromDistance, double toDistance, bool asRatio, out ICurve outSubcurve)
Parameters
GetVertexAttributeAtDistance(esriGeometryAttributes, double, bool)
Gets the attribute value corresponding to the distance along the segment.
virtual double GetVertexAttributeAtDistance(esriGeometryAttributes attributeType, double distance, bool asRatio)
Parameters
attributeTypeesriGeometryAttributesdistancedoubleasRatiobool
Returns
GetZs(out double, out double)
Get the Zs on the segment's endpoints.
virtual void GetZs(out double fromZ, out double toZ)
Parameters
HasVertexAttributes(esriGeometryAttributes, out bool, out bool)
Returns two booleans telling if the segment as from attribute and to attribute values.
virtual void HasVertexAttributes(esriGeometryAttributes attributeType, out bool hasFromAttribute, out bool hasToAttribute)
Parameters
attributeTypeesriGeometryAttributeshasFromAttributeboolhasToAttributebool
HorizontalIntersectionCount(ref WKSPoint, out bool)
Returns the number of horizontal intersections.
virtual int HorizontalIntersectionCount(ref WKSPoint p, out bool pointOnLine)
Parameters
Returns
IBezierCurve2_Degree
virtual int IBezierCurve2_Degree { get; }
Returns
IBezierCurve2_Dimension
virtual esriGeometryDimension IBezierCurve2_Dimension { get; }
Returns
IBezierCurve2_Envelope
virtual IEnvelope IBezierCurve2_Envelope { get; }
Returns
IBezierCurve2_FromPoint
virtual IPoint IBezierCurve2_FromPoint { get; set; }
Returns
IBezierCurve2_GeoNormalize()
virtual void IBezierCurve2_GeoNormalize()
IBezierCurve2_GeoNormalizeFromLongitude(double)
virtual void IBezierCurve2_GeoNormalizeFromLongitude(double Longitude)
Parameters
Longitudedouble
IBezierCurve2_GeometryType
virtual esriGeometryType IBezierCurve2_GeometryType { get; }
Returns
IBezierCurve2_GetSubcurve(double, double, bool, out ICurve)
virtual void IBezierCurve2_GetSubcurve(double fromDistance, double toDistance, bool asRatio, out ICurve outSubcurve)
Parameters
IBezierCurve2_IsClosed
virtual bool IBezierCurve2_IsClosed { get; }
Returns
IBezierCurve2_IsEmpty
virtual bool IBezierCurve2_IsEmpty { get; }
Returns
IBezierCurve2_Length
virtual double IBezierCurve2_Length { get; }
Returns
IBezierCurve2_Project(ISpatialReference)
virtual void IBezierCurve2_Project(ISpatialReference newReferenceSystem)
Parameters
newReferenceSystemISpatialReference
IBezierCurve2_PutCoord(int, IPoint)
virtual void IBezierCurve2_PutCoord(int Index, IPoint controlPoint)
Parameters
IBezierCurve2_PutCoords(int, ref IPoint)
virtual void IBezierCurve2_PutCoords(int numPoints, ref IPoint controlPoints)
Parameters
IBezierCurve2_PutWKSCoords(ref WKSPoint)
virtual void IBezierCurve2_PutWKSCoords(ref WKSPoint controlPoints)
Parameters
controlPointsWKSPoint
IBezierCurve2_QueryChordLengthTangentAtFrom(IPoint, ref bool)
virtual void IBezierCurve2_QueryChordLengthTangentAtFrom(IPoint tangent, ref bool setByUser)
Parameters
IBezierCurve2_QueryChordLengthTangentAtTo(IPoint, ref bool)
virtual void IBezierCurve2_QueryChordLengthTangentAtTo(IPoint tangent, ref bool setByUser)
Parameters
IBezierCurve2_QueryCoord(int, IPoint)
virtual void IBezierCurve2_QueryCoord(int Index, IPoint controlPoint)
Parameters
IBezierCurve2_QueryCoords(ref IPoint)
virtual void IBezierCurve2_QueryCoords(ref IPoint controlPoints)
Parameters
controlPointsIPoint
IBezierCurve2_QueryEnvelope(IEnvelope)
virtual void IBezierCurve2_QueryEnvelope(IEnvelope outEnvelope)
Parameters
outEnvelopeIEnvelope
IBezierCurve2_QueryFromPoint(IPoint)
virtual void IBezierCurve2_QueryFromPoint(IPoint from)
Parameters
fromIPoint
IBezierCurve2_QueryInflectionPoint(IPoint)
virtual void IBezierCurve2_QueryInflectionPoint(IPoint inflectionPoint)
Parameters
inflectionPointIPoint
IBezierCurve2_QueryNormal(esriSegmentExtension, double, bool, double, ILine)
virtual void IBezierCurve2_QueryNormal(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine normal)
Parameters
extensionesriSegmentExtensionDistanceAlongCurvedoubleasRatioboolLengthdoublenormalILine
IBezierCurve2_QueryPoint(esriSegmentExtension, double, bool, IPoint)
virtual void IBezierCurve2_QueryPoint(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, IPoint outPoint)
Parameters
extensionesriSegmentExtensionDistanceAlongCurvedoubleasRatiobooloutPointIPoint
IBezierCurve2_QueryPointAndDistance(esriSegmentExtension, IPoint, bool, IPoint, ref double, ref double, ref bool)
virtual void IBezierCurve2_QueryPointAndDistance(esriSegmentExtension extension, IPoint inPoint, bool asRatio, IPoint outPoint, ref double DistanceAlongCurve, ref double distanceFromCurve, ref bool bRightSide)
Parameters
extensionesriSegmentExtensioninPointIPointasRatiobooloutPointIPointDistanceAlongCurvedoubledistanceFromCurvedoublebRightSidebool
IBezierCurve2_QueryTangent(esriSegmentExtension, double, bool, double, ILine)
virtual void IBezierCurve2_QueryTangent(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine tangent)
Parameters
extensionesriSegmentExtensionDistanceAlongCurvedoubleasRatioboolLengthdoubletangentILine
IBezierCurve2_QueryToPoint(IPoint)
virtual void IBezierCurve2_QueryToPoint(IPoint to)
Parameters
toIPoint
IBezierCurve2_QueryWKSCoords(out WKSPoint)
virtual void IBezierCurve2_QueryWKSCoords(out WKSPoint controlPoints)
Parameters
controlPointsWKSPoint
IBezierCurve2_ReverseOrientation()
virtual void IBezierCurve2_ReverseOrientation()
IBezierCurve2_SetChordLengthTangentAtFrom(IPoint, bool)
virtual void IBezierCurve2_SetChordLengthTangentAtFrom(IPoint tangent, bool setByUser)
Parameters
IBezierCurve2_SetChordLengthTangentAtTo(IPoint, bool)
virtual void IBezierCurve2_SetChordLengthTangentAtTo(IPoint tangent, bool setByUser)
Parameters
IBezierCurve2_SetEmpty()
virtual void IBezierCurve2_SetEmpty()
IBezierCurve2_SnapToSpatialReference()
virtual void IBezierCurve2_SnapToSpatialReference()
IBezierCurve2_SpatialReference
virtual ISpatialReference IBezierCurve2_SpatialReference { get; set; }
Returns
IBezierCurve2_ToPoint
virtual IPoint IBezierCurve2_ToPoint { get; set; }
Returns
IBezierCurve3_Degree
virtual int IBezierCurve3_Degree { get; }
Returns
IBezierCurve3_Dimension
virtual esriGeometryDimension IBezierCurve3_Dimension { get; }
Returns
IBezierCurve3_Envelope
virtual IEnvelope IBezierCurve3_Envelope { get; }
Returns
IBezierCurve3_FromPoint
virtual IPoint IBezierCurve3_FromPoint { get; set; }
Returns
IBezierCurve3_GeoNormalize()
virtual void IBezierCurve3_GeoNormalize()
IBezierCurve3_GeoNormalizeFromLongitude(double)
virtual void IBezierCurve3_GeoNormalizeFromLongitude(double Longitude)
Parameters
Longitudedouble
IBezierCurve3_GeometryType
virtual esriGeometryType IBezierCurve3_GeometryType { get; }
Returns
IBezierCurve3_GetSubcurve(double, double, bool, out ICurve)
virtual void IBezierCurve3_GetSubcurve(double fromDistance, double toDistance, bool asRatio, out ICurve outSubcurve)
Parameters
IBezierCurve3_IsClosed
virtual bool IBezierCurve3_IsClosed { get; }
Returns
IBezierCurve3_IsEmpty
virtual bool IBezierCurve3_IsEmpty { get; }
Returns
IBezierCurve3_IsLine
virtual bool IBezierCurve3_IsLine { get; }
Returns
IBezierCurve3_Length
virtual double IBezierCurve3_Length { get; }
Returns
IBezierCurve3_Project(ISpatialReference)
virtual void IBezierCurve3_Project(ISpatialReference newReferenceSystem)
Parameters
newReferenceSystemISpatialReference
IBezierCurve3_PutCoord(int, IPoint)
virtual void IBezierCurve3_PutCoord(int Index, IPoint controlPoint)
Parameters
IBezierCurve3_PutCoords(int, ref IPoint)
virtual void IBezierCurve3_PutCoords(int numPoints, ref IPoint controlPoints)
Parameters
IBezierCurve3_PutWKSCoords(ref WKSPoint)
virtual void IBezierCurve3_PutWKSCoords(ref WKSPoint controlPoints)
Parameters
controlPointsWKSPoint
IBezierCurve3_QueryChordLengthTangentAtFrom(IPoint, ref bool)
virtual void IBezierCurve3_QueryChordLengthTangentAtFrom(IPoint tangent, ref bool setByUser)
Parameters
IBezierCurve3_QueryChordLengthTangentAtTo(IPoint, ref bool)
virtual void IBezierCurve3_QueryChordLengthTangentAtTo(IPoint tangent, ref bool setByUser)
Parameters
IBezierCurve3_QueryCoord(int, IPoint)
virtual void IBezierCurve3_QueryCoord(int Index, IPoint controlPoint)
Parameters
IBezierCurve3_QueryCoords(ref IPoint)
virtual void IBezierCurve3_QueryCoords(ref IPoint controlPoints)
Parameters
controlPointsIPoint
IBezierCurve3_QueryEnvelope(IEnvelope)
virtual void IBezierCurve3_QueryEnvelope(IEnvelope outEnvelope)
Parameters
outEnvelopeIEnvelope
IBezierCurve3_QueryFromPoint(IPoint)
virtual void IBezierCurve3_QueryFromPoint(IPoint from)
Parameters
fromIPoint
IBezierCurve3_QueryInflectionPoint(IPoint)
virtual void IBezierCurve3_QueryInflectionPoint(IPoint inflectionPoint)
Parameters
inflectionPointIPoint
IBezierCurve3_QueryNormal(esriSegmentExtension, double, bool, double, ILine)
virtual void IBezierCurve3_QueryNormal(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine normal)
Parameters
extensionesriSegmentExtensionDistanceAlongCurvedoubleasRatioboolLengthdoublenormalILine
IBezierCurve3_QueryPoint(esriSegmentExtension, double, bool, IPoint)
virtual void IBezierCurve3_QueryPoint(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, IPoint outPoint)
Parameters
extensionesriSegmentExtensionDistanceAlongCurvedoubleasRatiobooloutPointIPoint
IBezierCurve3_QueryPointAndDistance(esriSegmentExtension, IPoint, bool, IPoint, ref double, ref double, ref bool)
virtual void IBezierCurve3_QueryPointAndDistance(esriSegmentExtension extension, IPoint inPoint, bool asRatio, IPoint outPoint, ref double DistanceAlongCurve, ref double distanceFromCurve, ref bool bRightSide)
Parameters
extensionesriSegmentExtensioninPointIPointasRatiobooloutPointIPointDistanceAlongCurvedoubledistanceFromCurvedoublebRightSidebool
IBezierCurve3_QueryTangent(esriSegmentExtension, double, bool, double, ILine)
virtual void IBezierCurve3_QueryTangent(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine tangent)
Parameters
extensionesriSegmentExtensionDistanceAlongCurvedoubleasRatioboolLengthdoubletangentILine
IBezierCurve3_QueryToPoint(IPoint)
virtual void IBezierCurve3_QueryToPoint(IPoint to)
Parameters
toIPoint
IBezierCurve3_QueryWKSCoords(out WKSPoint)
virtual void IBezierCurve3_QueryWKSCoords(out WKSPoint controlPoints)
Parameters
controlPointsWKSPoint
IBezierCurve3_ReverseOrientation()
virtual void IBezierCurve3_ReverseOrientation()
IBezierCurve3_SetChordLengthTangentAtFrom(IPoint, bool)
virtual void IBezierCurve3_SetChordLengthTangentAtFrom(IPoint tangent, bool setByUser)
Parameters
IBezierCurve3_SetChordLengthTangentAtTo(IPoint, bool)
virtual void IBezierCurve3_SetChordLengthTangentAtTo(IPoint tangent, bool setByUser)
Parameters
IBezierCurve3_SetEmpty()
virtual void IBezierCurve3_SetEmpty()
IBezierCurve3_SnapToSpatialReference()
virtual void IBezierCurve3_SnapToSpatialReference()
IBezierCurve3_SpatialReference
virtual ISpatialReference IBezierCurve3_SpatialReference { get; set; }
Returns
IBezierCurve3_ToPoint
virtual IPoint IBezierCurve3_ToPoint { get; set; }
Returns
IBezierCurve_Degree
The degree of the Bezier curve. For third degree Beziers, this is always 3.
virtual int IBezierCurve_Degree { get; }
Returns
IBezierCurve_PutCoord(int, IPoint)
Sets the specified (0 <= index < 4) control point of this Bezier curve.
virtual void IBezierCurve_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.

IBezierCurve_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.
virtual void IBezierCurve_QueryChordLengthTangentAtFrom(IPoint tangent, ref bool setByUser)
Parameters
IBezierCurve_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.
virtual void IBezierCurve_QueryChordLengthTangentAtTo(IPoint tangent, ref bool setByUser)
Parameters
IBezierCurve_QueryCoord(int, IPoint)
Copies the specified control point of this Bezier curve into the input point.
virtual void IBezierCurve_QueryCoord(int Index, IPoint controlPoint)
Parameters
Remarks
IBezierCurve_QueryInflectionPoint(IPoint)
Finds inflection point; sets it empty if none exists.
virtual void IBezierCurve_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);
}
IBezierCurve_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.
virtual void IBezierCurve_SetChordLengthTangentAtFrom(IPoint tangent, bool setByUser)
Parameters
IBezierCurve_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.
virtual void IBezierCurve_SetChordLengthTangentAtTo(IPoint tangent, bool setByUser)
Parameters
ICurve2_Dimension
virtual esriGeometryDimension ICurve2_Dimension { get; }
Returns
ICurve2_Envelope
virtual IEnvelope ICurve2_Envelope { get; }
Returns
ICurve2_FromPoint
virtual IPoint ICurve2_FromPoint { get; set; }
Returns
ICurve2_GeoNormalize()
virtual void ICurve2_GeoNormalize()
ICurve2_GeoNormalizeFromLongitude(double)
virtual void ICurve2_GeoNormalizeFromLongitude(double Longitude)
Parameters
Longitudedouble
ICurve2_GeometryType
virtual esriGeometryType ICurve2_GeometryType { get; }
Returns
ICurve2_GetSubcurve(double, double, bool, out ICurve)
virtual void ICurve2_GetSubcurve(double fromDistance, double toDistance, bool asRatio, out ICurve outSubcurve)
Parameters
ICurve2_IsClosed
virtual bool ICurve2_IsClosed { get; }
Returns
ICurve2_IsEmpty
virtual bool ICurve2_IsEmpty { get; }
Returns
ICurve2_Length
virtual double ICurve2_Length { get; }
Returns
ICurve2_Project(ISpatialReference)
virtual void ICurve2_Project(ISpatialReference newReferenceSystem)
Parameters
newReferenceSystemISpatialReference
ICurve2_QueryEnvelope(IEnvelope)
virtual void ICurve2_QueryEnvelope(IEnvelope outEnvelope)
Parameters
outEnvelopeIEnvelope
ICurve2_QueryFromPoint(IPoint)
virtual void ICurve2_QueryFromPoint(IPoint from)
Parameters
fromIPoint
ICurve2_QueryNormal(esriSegmentExtension, double, bool, double, ILine)
virtual void ICurve2_QueryNormal(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine normal)
Parameters
extensionesriSegmentExtensionDistanceAlongCurvedoubleasRatioboolLengthdoublenormalILine
ICurve2_QueryPoint(esriSegmentExtension, double, bool, IPoint)
virtual void ICurve2_QueryPoint(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, IPoint outPoint)
Parameters
extensionesriSegmentExtensionDistanceAlongCurvedoubleasRatiobooloutPointIPoint
ICurve2_QueryPointAndDistance(esriSegmentExtension, IPoint, bool, IPoint, ref double, ref double, ref bool)
virtual void ICurve2_QueryPointAndDistance(esriSegmentExtension extension, IPoint inPoint, bool asRatio, IPoint outPoint, ref double DistanceAlongCurve, ref double distanceFromCurve, ref bool bRightSide)
Parameters
extensionesriSegmentExtensioninPointIPointasRatiobooloutPointIPointDistanceAlongCurvedoubledistanceFromCurvedoublebRightSidebool
ICurve2_QueryTangent(esriSegmentExtension, double, bool, double, ILine)
virtual void ICurve2_QueryTangent(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine tangent)
Parameters
extensionesriSegmentExtensionDistanceAlongCurvedoubleasRatioboolLengthdoubletangentILine
ICurve2_QueryToPoint(IPoint)
virtual void ICurve2_QueryToPoint(IPoint to)
Parameters
toIPoint
ICurve2_ReverseOrientation()
virtual void ICurve2_ReverseOrientation()
ICurve2_SetEmpty()
virtual void ICurve2_SetEmpty()
ICurve2_SnapToSpatialReference()
virtual void ICurve2_SnapToSpatialReference()
ICurve2_SpatialReference
virtual ISpatialReference ICurve2_SpatialReference { get; set; }
Returns
ICurve2_ToPoint
virtual IPoint ICurve2_ToPoint { get; set; }
Returns
ICurve3_Dimension
virtual esriGeometryDimension ICurve3_Dimension { get; }
Returns
ICurve3_Envelope
virtual IEnvelope ICurve3_Envelope { get; }
Returns
ICurve3_FromPoint
virtual IPoint ICurve3_FromPoint { get; set; }
Returns
ICurve3_GeoNormalize()
virtual void ICurve3_GeoNormalize()
ICurve3_GeoNormalizeFromLongitude(double)
virtual void ICurve3_GeoNormalizeFromLongitude(double Longitude)
Parameters
Longitudedouble
ICurve3_GeometryType
virtual esriGeometryType ICurve3_GeometryType { get; }
Returns
ICurve3_GetSubcurve(double, double, bool, out ICurve)
virtual void ICurve3_GetSubcurve(double fromDistance, double toDistance, bool asRatio, out ICurve outSubcurve)
Parameters
ICurve3_IsClosed
virtual bool ICurve3_IsClosed { get; }
Returns
ICurve3_IsEmpty
virtual bool ICurve3_IsEmpty { get; }
Returns
ICurve3_Length
virtual double ICurve3_Length { get; }
Returns
ICurve3_Project(ISpatialReference)
virtual void ICurve3_Project(ISpatialReference newReferenceSystem)
Parameters
newReferenceSystemISpatialReference
ICurve3_PutCoordsEx(IPoint, IPoint)
virtual void ICurve3_PutCoordsEx(IPoint from, IPoint to)
Parameters
ICurve3_QueryEnvelope(IEnvelope)
virtual void ICurve3_QueryEnvelope(IEnvelope outEnvelope)
Parameters
outEnvelopeIEnvelope
ICurve3_QueryFromPoint(IPoint)
virtual void ICurve3_QueryFromPoint(IPoint from)
Parameters
fromIPoint
ICurve3_QueryNormal(esriSegmentExtension, double, bool, double, ILine)
virtual void ICurve3_QueryNormal(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine normal)
Parameters
extensionesriSegmentExtensionDistanceAlongCurvedoubleasRatioboolLengthdoublenormalILine
ICurve3_QueryPoint(esriSegmentExtension, double, bool, IPoint)
virtual void ICurve3_QueryPoint(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, IPoint outPoint)
Parameters
extensionesriSegmentExtensionDistanceAlongCurvedoubleasRatiobooloutPointIPoint
ICurve3_QueryPointAndDistance(esriSegmentExtension, IPoint, bool, IPoint, ref double, ref double, ref bool)
virtual void ICurve3_QueryPointAndDistance(esriSegmentExtension extension, IPoint inPoint, bool asRatio, IPoint outPoint, ref double DistanceAlongCurve, ref double distanceFromCurve, ref bool bRightSide)
Parameters
extensionesriSegmentExtensioninPointIPointasRatiobooloutPointIPointDistanceAlongCurvedoubledistanceFromCurvedoublebRightSidebool
ICurve3_QueryTangent(esriSegmentExtension, double, bool, double, ILine)
virtual void ICurve3_QueryTangent(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine tangent)
Parameters
extensionesriSegmentExtensionDistanceAlongCurvedoubleasRatioboolLengthdoubletangentILine
ICurve3_QueryToPoint(IPoint)
virtual void ICurve3_QueryToPoint(IPoint to)
Parameters
toIPoint
ICurve3_ReverseOrientation()
virtual void ICurve3_ReverseOrientation()
ICurve3_SetEmpty()
virtual void ICurve3_SetEmpty()
ICurve3_SnapToSpatialReference()
virtual void ICurve3_SnapToSpatialReference()
ICurve3_SpatialReference
virtual ISpatialReference ICurve3_SpatialReference { get; set; }
Returns
ICurve3_ToPoint
virtual IPoint ICurve3_ToPoint { get; set; }
Returns
ICurve_Dimension
virtual esriGeometryDimension ICurve_Dimension { get; }
Returns
ICurve_Envelope
virtual IEnvelope ICurve_Envelope { get; }
Returns
ICurve_FromPoint
The 'from' point of the curve.
virtual IPoint ICurve_FromPoint { get; set; }
Returns
Remarks

ICurve_GeoNormalize()
virtual void ICurve_GeoNormalize()
ICurve_GeoNormalizeFromLongitude(double)
virtual void ICurve_GeoNormalizeFromLongitude(double Longitude)
Parameters
Longitudedouble
ICurve_GeometryType
virtual esriGeometryType ICurve_GeometryType { get; }
Returns
ICurve_GetSubcurve(double, double, bool, out ICurve)
Extracts a portion of this curve into a new curve.
virtual void ICurve_GetSubcurve(double fromDistance, double toDistance, bool asRatio, out ICurve outSubcurve)
Parameters
Remarks

ICurve_IsClosed
Indicates if 'from' and 'to' points (of each part) are identical.
virtual bool ICurve_IsClosed { get; }
Returns
Remarks
IsClosed may still return TRUE if the curve consists of improperly constructed geometries (ex. non-continuous paths). IsClosed only checks the location of the From and To points of each part, it does not check the internal parts for topological consistency.

ICurve_IsEmpty
virtual bool ICurve_IsEmpty { get; }
Returns
ICurve_Length
The length of the curve.
virtual double ICurve_Length { get; }
Returns
ICurve_Project(ISpatialReference)
virtual void ICurve_Project(ISpatialReference newReferenceSystem)
Parameters
newReferenceSystemISpatialReference
ICurve_QueryEnvelope(IEnvelope)
virtual void ICurve_QueryEnvelope(IEnvelope outEnvelope)
Parameters
outEnvelopeIEnvelope
ICurve_QueryFromPoint(IPoint)
Copies this curve's 'from' point to the input point.
virtual void ICurve_QueryFromPoint(IPoint from)
Parameters
fromIPoint
Remarks
Note: The output geometry must be co-created prior to the query. The output geometry is not co-created by the method; it is populated. This can be used in performance critical situations. For example, creating the geometry only once outside a loop and use the query method could improve performance.

//The example shows how to query the from and to points of a curve.
public void ICurveQueryPoints(IFeature currentFeature)
{
if (currentFeature.Shape.GeometryType == esriGeometryType.esriGeometryPolyline ||
currentFeature.Shape.GeometryType == esriGeometryType.esriGeometryLine)
{
ICurve curve = currentFeature.Shape as ICurve;
IPoint fromPoint = new PointClass();
IPoint toPoint = new PointClass();
curve.QueryFromPoint(fromPoint);
curve.QueryToPoint(toPoint);
System.Windows.Forms.MessageBox.Show("ICurve properties..." + "\n" +
"Curve.QueryFromPoint (x,y) = " + fromPoint.X + "," + fromPoint.Y + "\n" +
"Curve.QueryToPoint (x,y) = " + toPoint.X + "," + toPoint.Y);
}
}
' The example shows how to query the from and to points of a curve.
Public Sub t_ICurve_QueryPoints(ByVal pFeature As IFeature)
Dim pCurve As ICurve
Dim pPointFrom As IPoint
Dim pPointTo As IPoint
pPointFrom = New Point
pPointTo = New Point
If pFeature.Shape.GeometryType = esriGeometryType.esriGeometryPolyline Or _
esriGeometryType.esriGeometryPolyline Or esriGeometryType.esriGeometryLine Then
pCurve = pFeature.Shape
pCurve.QueryFromPoint(pPointFrom)
pCurve.QueryToPoint(pPointTo)
MsgBox("+++ICurve properties..." & vbCrLf _
& "Curve.QueryFromPoint (x,y) = " & pPointFrom.X & "," & pPointFrom.Y & vbCrLf _
& "Curve.QueryToPoint (x,y) = " & pPointTo.X & "," & pPointTo.Y & vbCrLf)
End If
End Sub
ICurve_QueryNormal(esriSegmentExtension, double, bool, double, ILine)
Constructs a line normal to a curve from a point at a specified distance along the curve.
virtual void ICurve_QueryNormal(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine normal)
Parameters
extensionesriSegmentExtensionDistanceAlongCurvedoubleasRatioboolLengthdoublenormalILine
Remarks

ICurve_QueryPoint(esriSegmentExtension, double, bool, IPoint)
Copies to outPoint the properties of a point on the curve at a specified distance from the beginning of the curve.
virtual void ICurve_QueryPoint(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, IPoint outPoint)
Parameters
extensionesriSegmentExtensionDistanceAlongCurvedoubleasRatiobooloutPointIPoint
Remarks
Note: The output geometry must be co-created prior to the query. The output geometry is not co-created by the method; it is populated. This can be used in performance critical situations. For example, creating the geometry only once outside a loop and use the query method could improve performance.

ICurve_QueryPointAndDistance(esriSegmentExtension, IPoint, bool, IPoint, ref double, ref double, ref bool)
Finds the point on the curve closest to inPoint, then copies that point to outPoint; optionally calculates related items.
virtual void ICurve_QueryPointAndDistance(esriSegmentExtension extension, IPoint inPoint, bool asRatio, IPoint outPoint, ref double DistanceAlongCurve, ref double distanceFromCurve, ref bool bRightSide)
Parameters
extensionesriSegmentExtensioninPointIPointasRatiobooloutPointIPointDistanceAlongCurvedoubledistanceFromCurvedoublebRightSidebool
Remarks
AsRatio is an input parameter that only affects the DistanceAlongCurve
distanceFromCurve is an output parameter that represents the minimum distance between the curve and the input point.
DistanceAlongCurve is an output parameter that represents the distance between the Frompoint of the input curve and the returned point on the curve.
bRightSide is an output parameter that tells if the input point is on the right side of the curve. The direction of the curve determines the right and left sides.
Note: The output geometry must be co-created prior to the query. The output geometry is not co-created by the method; it is populated. This can be used in performance critical situations. For example, creating the geometry only once outside a loop and use the query method could improve performance.

ICurve_QueryTangent(esriSegmentExtension, double, bool, double, ILine)
Constructs a line tangent to a curve from a point at a specified distance along the curve.
virtual void ICurve_QueryTangent(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine tangent)
Parameters
extensionesriSegmentExtensionDistanceAlongCurvedoubleasRatioboolLengthdoubletangentILine
Remarks

ICurve_QueryToPoint(IPoint)
Copies the curve's 'to' point into the input point.
virtual void ICurve_QueryToPoint(IPoint to)
Parameters
toIPoint
Remarks
Note: The output geometry must be co-created prior to the query. The output geometry is not co-created by the method; it is populated. This can be used in performance critical situations. For example, creating the geometry only once outside a loop and use the query method could improve performance.

ICurve_ReverseOrientation()
Reverses the parameterization of the curve ('from' point becomes 'to' point, first segment becomes last segment, etc).
virtual void ICurve_ReverseOrientation()
Remarks
The ReverseOrientation method works the same way as the Arcedit FLIP command. It reverses the order of the vertices in the Curve.
Caution should be taken in using ReverseOrientation on Polygons. Since ReverseOrientation changes the direction of each Ring within the Polygon, all Exterior Rings become Interior Rings and vice versa.

public void ReverseOrientation(IFeatureClass featureClass, int oidToEdit)
{
IFeature feature = featureClass.GetFeature(oidToEdit);
if (feature.Shape.GeometryType == esriGeometryType.esriGeometryPolygon)
{
IArea area = feature.Shape as IArea;
double beforeReverse = area.Area;
ICurve curve = feature.Shape as ICurve;
curve.ReverseOrientation();
double afterReverse = area.Area;
System.Windows.Forms.MessageBox.Show(String.Format("The polygon area is originally {0}, after the orientation was reversed the area is {1}.",beforeReverse,afterReverse));
}
}
ICurve_SetEmpty()
virtual void ICurve_SetEmpty()
ICurve_SnapToSpatialReference()
virtual void ICurve_SnapToSpatialReference()
ICurve_SpatialReference
virtual ISpatialReference ICurve_SpatialReference { get; set; }
Returns
ICurve_ToPoint
The 'to' point of the curve.
virtual IPoint ICurve_ToPoint { get; set; }
Returns
Remarks

IGeometry_Dimension
The topological dimension of this geometry.
virtual esriGeometryDimension IGeometry_Dimension { get; }
Returns
Remarks
Note: At 9.0, Multipatches are now considered as two dimensional geometry. esriGeometry3Dimension will be used for an upcoming new geometry type.
-1 esriGeometryNoDimension
1 esriGeometry0Dimension
2 esriGeometry1Dimension
4 esriGeometry2Dimension
5 esriGeometry25Dimension
6 esriGeometry3Dimension

IGeometry_Envelope
Creates a copy of this geometry's envelope and returns it.
virtual IEnvelope IGeometry_Envelope { get; }
Returns
Examples
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
<img src="./bitmaps/envelope.gif" align=
"baseline"></span></span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
</p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
</span> <span style=
"COLOR: blue">public</span> <span style="COLOR: blue">static</span>
<span style="COLOR: teal">IGeometry</span>
GetEnvelopeGeometry()</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
</span> {</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
</span>
<span style="COLOR: blue">const</span> <span style=
"COLOR: blue">double</span> DeltaX = 2.5;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
</span>
<span style="COLOR: blue">const</span> <span style=
"COLOR: blue">double</span> DeltaY = 2.5;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
</span>
<span style="COLOR: blue">const</span> <span style=
"COLOR: blue">double</span> DeltaZ = 2.5;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
</span>
<span style="COLOR: teal">IPoint</span> centerPoint =
GetPoint();</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
</span>
<span style="COLOR: teal">IEnvelope</span> envelope = <span style=
"COLOR: blue">new</span> <span style=
"COLOR: teal">EnvelopeClass</span>();</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
</span>
envelope.XMin = centerPoint.X - DeltaX;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
</span>
envelope.XMax = centerPoint.X + DeltaX;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
</span>
envelope.YMin = centerPoint.Y - DeltaY;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
</span>
envelope.YMax = centerPoint.Y + DeltaY;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
</span>
envelope.ZMin = centerPoint.Z - DeltaZ;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
</span>
envelope.ZMax = centerPoint.Z + DeltaZ;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
</span>
MakeZAware(envelope <span style="COLOR: blue">as</span>
<span style="COLOR: teal">IGeometry</span>);</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
</span>
<span style="COLOR: blue">return</span> envelope <span style=
"COLOR: blue">as</span> <span style=
"COLOR: teal">IGeometry</span>;</span></p>
<p class="MsoNormal" style="MARGIN: 0in 0in 10pt"><span style=
"FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">
<span style=
"mso-spacerun: yes"> </span>
}</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
</span> <span style=
"COLOR: blue">private</span> <span style=
"COLOR: blue">static</span> <span style="COLOR: teal">IPoint</span>
GetPoint()</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
</span> {</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
</span>
<span style="COLOR: blue">const</span> <span style=
"COLOR: blue">double</span> Min = -10;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
</span>
<span style="COLOR: blue">const</span> <span style=
"COLOR: blue">double</span> Max = 10;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
</span>
<span style="COLOR: teal">Random</span> random = <span style=
"COLOR: blue">new</span> <span style=
"COLOR: teal">Random</span>();</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
</span>
<span style="COLOR: blue">double</span> x = Min + (Max - Min) *
random.NextDouble();</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
</span>
<span style="COLOR: blue">double</span> y = Min + (Max - Min) *
random.NextDouble();</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
</span>
<span style="COLOR: blue">double</span> z = Min + (Max - Min) *
random.NextDouble();</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
</span>
<span style="COLOR: blue">return</span> ConstructPoint3D(x, y,
z);</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
</span> }</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> </span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes"> </span></span>
<span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
private</span> <span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
static</span> <span style=
"FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
IPoint</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
ConstructPoint3D(</span><span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">double</span>
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
x,</span> <span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
double</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
y,</span> <span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
double</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
z)</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes"> </span>
{</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes"> </span></span>
<span style=
"FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
IPoint</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
point = ConstructPoint2D(x, y);</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes"> </span>
point.Z = z;<br>
<br>
<span style=
"mso-spacerun: yes"> </span></span>
<span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
return</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
point;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes"> </span>
}<br>
<br style="mso-special-character: line-break">
<br style="mso-special-character: line-break"></span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes"> </span></span>
<span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
private</span> <span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
static</span> <span style=
"FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
IPoint</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
ConstructPoint2D(</span><span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">double</span>
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
x,</span> <span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
double</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
y)</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes"> </span>
{</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes"> </span></span>
<span style=
"FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
IPoint</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
point =</span> <span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
new</span> <span style=
"FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
PointClass</span><span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">();</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes"> </span>
point.PutCoords(x, y);<br>
<span style="mso-spacerun: yes"> </span></span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes"> </span></span>
<span style=
"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
return</span> <span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
point;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 10pt; LINE-HEIGHT: normal"><span style=
"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-no-proof: yes; mso-fareast-font-family: 'Times New Roman'">
<span style=
"mso-spacerun: yes"> </span>
}</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
</span> <span style=
"COLOR: blue">private</span> <span style=
"COLOR: blue">static</span> <span style="COLOR: blue">void</span>
MakeZAware(<span style="COLOR: teal">IGeometry</span>
geometry)</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
</span> {</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
</span>
<span style="COLOR: teal">IZAware</span> zAware = geometry
<span style="COLOR: blue">as</span> <span style=
"COLOR: teal">IZAware</span>;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
</span>
zAware.ZAware = <span style="COLOR: blue">true</span>;</span></p>
<p class="MsoNormal" style=
"MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none">
<span style=
"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><span style="mso-spacerun: yes">
</span> }</span></p>
Remarks

IGeometry_GeoNormalize()
Shifts longitudes, if need be, into a continuous range of 360 degrees.
virtual void IGeometry_GeoNormalize()
Remarks
IGeometry_GeoNormalizeFromLongitude(double)
Normalizes longitudes into a continuous range containing the longitude. This method is obsolete.
virtual void IGeometry_GeoNormalizeFromLongitude(double Longitude)
Parameters
Longitudedouble
Remarks
IGeometry_GeometryType
The type of this geometry.
virtual esriGeometryType IGeometry_GeometryType { get; }
Returns
Remarks
esriGeometryNull = 0
esriGeometryPoint = 1
esriGeometryMultipoint = 2
esriGeometryPolyline = 3
esriGeometryPolygon = 4
esriGeometryEnvelope = 5
esriGeometryPath = 6
esriGeometryAny = 7
esriGeometryMultiPatch = 9
esriGeometryRing = 11
esriGeometryLine = 13
esriGeometryCircularArc = 14
esriGeometryBezier3Curve = 15
esriGeometryEllipticArc = 16
esriGeometryBag = 17
esriGeometryTriangleStrip = 18
esriGeometryTriangleFan = 19
esriGeometryRay = 20
esriGeometrySphere = 21
IGeometry_IsEmpty
Indicates whether this geometry contains any points.
virtual bool IGeometry_IsEmpty { get; }
Returns
IGeometry_Project(ISpatialReference)
Projects this geometry into a new spatial reference.
virtual void IGeometry_Project(ISpatialReference newReferenceSystem)
Parameters
newReferenceSystemISpatialReference
Remarks
Note: This method can only be called upon the top level geometries (Points, Multipoints, Polylines and Polygons). If the from/to spatial references have different geographic coordinate systems, the Project method looks for a GeoTransformationsOperationSet. If the set of Geotransformations is present in memory, Project will use it to perform a geographic/datum Transformation. To use a specific geotransformation, use the IGeometry2::ProjectEx method.
//Create Spatial Reference Factory
ISpatialReferenceFactory srFactory = new SpatialReferenceEnvironmentClass();
ISpatialReference sr1;
//GCS to project from
IGeographicCoordinateSystem gcs = srFactory.CreateGeographicCoordinateSystem((int)esriSRGeoCSType.esriSRGeoCS_NAD1983);
sr1 = gcs;
sr1.SetFalseOriginAndUnits(-180, -90, 1000000);
//Projected Coordinate System to project into
IProjectedCoordinateSystem pcs = srFactory.CreateProjectedCoordinateSystem((int)esriSRProjCSType.esriSRProjCS_NAD1983N_AmericaLambert);
pcs.SetFalseOriginAndUnits(0, 0, 1000);
ISpatialReference sr2;
sr2 = pcs;
//Point to project
IPoint point = new PointClass() as IPoint;
point.PutCoords(-117.17, 34.06);
//Geometry Interface to do actual project
IGeometry geometry;
geometry = point;
geometry.SpatialReference = sr1;
geometry.Project(sr2);
point = geometry as IPoint;
double x;
double y;
point.QueryCoords(out x, out y);
Debug.Print("X: " + x.ToString());
Debug.Print("Y: " + y.ToString());
IGeometry_QueryEnvelope(IEnvelope)
Copies this geometry's envelope properties into the specified envelope.
virtual void IGeometry_QueryEnvelope(IEnvelope outEnvelope)
Parameters
outEnvelopeIEnvelope
Remarks
Note: The output geometry must be co-created prior to the query. The output geometry is not co-created by the method; it is populated. This can be used in performance critical situations. For example, creating the geometry only once outside a loop and use the query method could improve performance.

IGeometry_SetEmpty()
Removes all points from this geometry.
virtual void IGeometry_SetEmpty()
Remarks
Use the SetEmpty method to clear geometries and release memory. For example, a polygon with 100 rings will have an internal array of 100 pointers to ring objects. That array will go away and Release will be called on each ring. If that polygon had the only reference on those rings, then they'll go away, which releases all their segments, which may also then go away.
{
geometry.SetEmpty();
return geometry.IsEmpty;
}
IGeometry_SnapToSpatialReference()
Moves points of this geometry so that they can be represented in the precision of the geometry's associated spatial reference system.
virtual void IGeometry_SnapToSpatialReference()
Remarks
IGeometry_SpatialReference
The spatial reference associated with this geometry.
virtual ISpatialReference IGeometry_SpatialReference { get; set; }
Returns
ISegment_Dimension
virtual esriGeometryDimension ISegment_Dimension { get; }
Returns
ISegment_Envelope
virtual IEnvelope ISegment_Envelope { get; }
Returns
ISegment_FromPoint
virtual IPoint ISegment_FromPoint { get; set; }
Returns
ISegment_GeoNormalize()
virtual void ISegment_GeoNormalize()
ISegment_GeoNormalizeFromLongitude(double)
virtual void ISegment_GeoNormalizeFromLongitude(double Longitude)
Parameters
Longitudedouble
ISegment_GeometryType
virtual esriGeometryType ISegment_GeometryType { get; }
Returns
ISegment_GetSubcurve(double, double, bool, out ICurve)
virtual void ISegment_GetSubcurve(double fromDistance, double toDistance, bool asRatio, out ICurve outSubcurve)
Parameters
ISegment_IsClosed
virtual bool ISegment_IsClosed { get; }
Returns
ISegment_IsEmpty
virtual bool ISegment_IsEmpty { get; }
Returns
ISegment_Length
virtual double ISegment_Length { get; }
Returns
ISegment_Project(ISpatialReference)
virtual void ISegment_Project(ISpatialReference newReferenceSystem)
Parameters
newReferenceSystemISpatialReference
ISegment_QueryEnvelope(IEnvelope)
virtual void ISegment_QueryEnvelope(IEnvelope outEnvelope)
Parameters
outEnvelopeIEnvelope
ISegment_QueryFromPoint(IPoint)
virtual void ISegment_QueryFromPoint(IPoint from)
Parameters
fromIPoint
ISegment_QueryNormal(esriSegmentExtension, double, bool, double, ILine)
virtual void ISegment_QueryNormal(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine normal)
Parameters
extensionesriSegmentExtensionDistanceAlongCurvedoubleasRatioboolLengthdoublenormalILine
ISegment_QueryPoint(esriSegmentExtension, double, bool, IPoint)
virtual void ISegment_QueryPoint(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, IPoint outPoint)
Parameters
extensionesriSegmentExtensionDistanceAlongCurvedoubleasRatiobooloutPointIPoint
ISegment_QueryPointAndDistance(esriSegmentExtension, IPoint, bool, IPoint, ref double, ref double, ref bool)
virtual void ISegment_QueryPointAndDistance(esriSegmentExtension extension, IPoint inPoint, bool asRatio, IPoint outPoint, ref double DistanceAlongCurve, ref double distanceFromCurve, ref bool bRightSide)
Parameters
extensionesriSegmentExtensioninPointIPointasRatiobooloutPointIPointDistanceAlongCurvedoubledistanceFromCurvedoublebRightSidebool
ISegment_QueryTangent(esriSegmentExtension, double, bool, double, ILine)
virtual void ISegment_QueryTangent(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine tangent)
Parameters
extensionesriSegmentExtensionDistanceAlongCurvedoubleasRatioboolLengthdoubletangentILine
ISegment_QueryToPoint(IPoint)
virtual void ISegment_QueryToPoint(IPoint to)
Parameters
toIPoint
ISegment_ReverseOrientation()
virtual void ISegment_ReverseOrientation()
ISegment_SetEmpty()
virtual void ISegment_SetEmpty()
ISegment_SnapToSpatialReference()
virtual void ISegment_SnapToSpatialReference()
ISegment_SpatialReference
virtual ISpatialReference ISegment_SpatialReference { get; set; }
Returns
ISegment_ToPoint
virtual IPoint ISegment_ToPoint { get; set; }
Returns
InterfaceSupportsErrorInfo(ref Guid)
virtual void InterfaceSupportsErrorInfo(ref Guid riid)
Parameters
riidGuid
InterpolateVertexAttributes(double, bool, IPoint)
Interpolates Z and M values at distanceAlongSegment and stores the results at point.
virtual void InterpolateVertexAttributes(double distanceAlongSegment, bool asRatio, IPoint atPoint)
Parameters
IsClosed
virtual bool IsClosed { get; }
Returns
IsEmpty
virtual bool IsEmpty { get; }
Returns
IsEqual(IClone)
Indicates if the receiver and other have the same properties.
virtual bool IsEqual(IClone other)
Parameters
otherIClone
Returns
IsIdentical(IClone)
Indicates if the receiver and other are the same object.
virtual bool IsIdentical(IClone other)
Parameters
otherIClone
Returns
IsLine
Indicates if the curve degenerated to a line.
virtual bool IsLine { get; }
Returns
Length
virtual double Length { get; }
Returns
MaxDistanceFromLine(ref WKSPoint, ref WKSPoint, double, double, double, ref double, ref double, ref WKSPoint)
Returns the maximum distance from the line.
virtual void MaxDistanceFromLine(ref WKSPoint baseFrom, ref WKSPoint baseTo, double minOffset, double fromArcDistance, double toArcDistance, ref double maxOffset, ref double atArcDistance, ref WKSPoint farPoint)
Parameters
baseFromWKSPointbaseToWKSPointminOffsetdoublefromArcDistancedoubletoArcDistancedoublemaxOffsetdoubleatArcDistancedoublefarPointWKSPoint
Move(double, double)
Moves dx units horizontally and dy units vertically.
virtual void Move(double dx, double dy)
Parameters
Remarks

MoveVector(ILine)
Moves a direction and distance v. v can be in a different spatial reference than the geometry being moved.
virtual void MoveVector(ILine v)
Parameters
vILine
Remarks

Parameter[double, bool]
The parametric distance along the bezier.
virtual double Parameter[double DistanceAlongCurve, bool asRatio] { get; }
Parameters
Returns
Remarks
<P>The <STRONG>IClone::IsIdentical</STRONG> method is not implemented. </P>
Project(ISpatialReference)
virtual void Project(ISpatialReference newReferenceSystem)
Parameters
newReferenceSystemISpatialReference
PutAttributes(bool, bool, ref esriPointAttributes, ref esriPointAttributes)
Sets some attributes from this point and copies them to another point. Awareness is not considered.
virtual void PutAttributes(bool PutAttributes, bool putAwareness, ref esriPointAttributes from, ref esriPointAttributes to)
Parameters
PutCoord(int, IPoint)
Sets the specified (0 <= index < 4) control point of this Bezier curve.
virtual void PutCoord(int Index, IPoint controlPoint)
Parameters
PutCoords(ref IPoint[])
Sets this Bezier curve's control points from an array of between 1 to 4 input points.
virtual void PutCoords(ref IPoint[] controlPoints)
Parameters
controlPointsIPoint[]
Remarks
PutCoords(int, ref IPoint)
Sets this Bezier curve's control points from an array of between 1 to 4 input points.
virtual void PutCoords(int numPoints, ref IPoint controlPoints)
Parameters
Remarks
PutCoordsEx(IPoint, IPoint)
Sets this segment's endpoints to 'from' and 'to'.
virtual void PutCoordsEx(IPoint from, IPoint to)
Parameters
PutVertexAttributes(esriGeometryAttributes, double, double)
Sets the 'from' and the 'to' attribute values.
virtual void PutVertexAttributes(esriGeometryAttributes attributeType, double fromAttribute, double toAttribute)
Parameters
attributeTypeesriGeometryAttributesfromAttributedoubletoAttributedouble
PutWKSCoords(ref WKSPoint)
Sets this Bezier curve's control points from the array of 4 input point structures.
virtual void PutWKSCoords(ref WKSPoint controlPoints)
Parameters
controlPointsWKSPoint
QueryAreaCorrection(out double)
Queries the area correction value.
virtual void QueryAreaCorrection(out double areaCorrection)
Parameters
areaCorrectiondouble
QueryAttributes(bool, bool, ref esriPointAttributes, ref esriPointAttributes)
Gets some attributes from this point and copies them to another point. Awareness is not considered.
virtual void QueryAttributes(bool getAttributes, bool getAwareness, ref esriPointAttributes from, ref esriPointAttributes to)
Parameters
QueryCentroidCorrection(ref double, ref double, ref double)
Queries the centroid correction value.
virtual void QueryCentroidCorrection(ref double weightedCentroidX, ref double weightedCentroidY, ref double areaCorrection)
Parameters
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.
virtual 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.
virtual void QueryChordLengthTangentAtTo(IPoint tangent, ref bool setByUser)
Parameters
QueryCoord(int, IPoint)
Copies the specified control point of this Bezier curve into the input point.
virtual void QueryCoord(int Index, IPoint controlPoint)
Parameters
QueryCoords(ref IPoint)
Copies this Bezier curve's control points into the array of 4 existing points.
virtual void QueryCoords(ref IPoint controlPoints)
Parameters
controlPointsIPoint
Remarks
QueryCoords(ref IPoint[])
Sets the existing elements of an existing safe array to be equal to the four control points of this bezier curve.
virtual void QueryCoords(ref IPoint[] controlPoints)
Parameters
controlPointsIPoint[]
QueryCurvature(double, bool, out double, ILine)
Finds curvature and unit vector starting at point on segment and directed to embedded circle center.
virtual void QueryCurvature(double DistanceAlongCurve, bool asRatio, out double curvature, ILine unitVector)
Parameters
Remarks
The unit vector returned by QueryCurvature points toward the center of the circle that has the same first and second derivative at the queried point with a curvature value equal to 1 / Radius of that circle.

QueryEnvelope(IEnvelope)
virtual void QueryEnvelope(IEnvelope outEnvelope)
Parameters
outEnvelopeIEnvelope
QueryFromPoint(IPoint)
virtual void QueryFromPoint(IPoint from)
Parameters
fromIPoint
QueryInflectionPoint(IPoint)
Finds inflection point; sets it empty if none exists.
virtual void QueryInflectionPoint(IPoint inflectionPoint)
Parameters
inflectionPointIPoint
QueryNearestPoint(IPoint, esriSegmentExtension, IPoint)
Copies into 'nearest' a point on this geometry nearest to the input point.
virtual void QueryNearestPoint(IPoint p, esriSegmentExtension extension, IPoint nearest)
Parameters
pIPointextensionesriSegmentExtensionnearestIPoint
Remarks

QueryNormal(esriSegmentExtension, double, bool, double, ILine)
virtual void QueryNormal(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine normal)
Parameters
extensionesriSegmentExtensionDistanceAlongCurvedoubleasRatioboolLengthdoublenormalILine
QueryPoint(esriSegmentExtension, double, bool, IPoint)
virtual void QueryPoint(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, IPoint outPoint)
Parameters
extensionesriSegmentExtensionDistanceAlongCurvedoubleasRatiobooloutPointIPoint
QueryPointAndDistance(esriSegmentExtension, IPoint, bool, IPoint, ref double, ref double, ref bool)
virtual void QueryPointAndDistance(esriSegmentExtension extension, IPoint inPoint, bool asRatio, IPoint outPoint, ref double DistanceAlongCurve, ref double distanceFromCurve, ref bool bRightSide)
Parameters
extensionesriSegmentExtensioninPointIPointasRatiobooloutPointIPointDistanceAlongCurvedoubledistanceFromCurvedoublebRightSidebool
QueryPointsAndDistances(esriSegmentExtension, double, IPoint, bool, ref double, out IEnumPointAndDistance)
Given an input point, calculates the minimum distance to the geometry and provides an enumerator over all closest points on the geometry, along with additional information.
virtual void QueryPointsAndDistances(esriSegmentExtension extension, double searchRadius, IPoint inPoint, bool asRatio, ref double distanceFromCurve, out IEnumPointAndDistance pointsAndDistances)
Parameters
extensionesriSegmentExtensionsearchRadiusdoubleinPointIPointasRatiobooldistanceFromCurvedoublepointsAndDistancesIEnumPointAndDistance
Remarks
AsRatio is an input parameter that only affects the DistanceAlongCurvereturned as part of the output IEnumPointAndDistance enumerator.
distanceFromCurve is an output parameter that represents the minimum distance between the curve and the input point.
IEnumPointAndDistance is an enumerator (it inherits from IEnumVertex) over all nearest points on the curve
QueryTangent(esriSegmentExtension, double, bool, double, ILine)
virtual void QueryTangent(esriSegmentExtension extension, double DistanceAlongCurve, bool asRatio, double Length, ILine tangent)
Parameters
extensionesriSegmentExtensionDistanceAlongCurvedoubleasRatioboolLengthdoubletangentILine
QueryToPoint(IPoint)
virtual void QueryToPoint(IPoint to)
Parameters
toIPoint
QueryVertexAttributes(esriGeometryAttributes, out double, out double)
Gets the 'from' and the 'to' attribute values.
virtual void QueryVertexAttributes(esriGeometryAttributes attributeType, out double fromAttribute, out double toAttribute)
Parameters
attributeTypeesriGeometryAttributesfromAttributedoubletoAttributedouble
QueryWKSCoords(out WKSPoint)
Copies this Bezier curve's control points into the array of 4 existing point structures.
virtual void QueryWKSCoords(out WKSPoint controlPoints)
Parameters
controlPointsWKSPoint
QueryWKSEnvelope(ref WKSEnvelope)
Queries the WKS Envelope.
virtual void QueryWKSEnvelope(ref WKSEnvelope Envelope)
Parameters
EnvelopeWKSEnvelope
QueryWKSFromPoint(out WKSPoint)
Query the WKSPoint at the 'from' point.
virtual void QueryWKSFromPoint(out WKSPoint p)
Parameters
pWKSPoint
QueryWKSToPoint(out WKSPoint)
Query the WKSPoint at the 'to' point.
virtual void QueryWKSToPoint(out WKSPoint p)
Parameters
pWKSPoint
ReturnDistance(IGeometry)
Returns the minimum distance between two geometries.
virtual double ReturnDistance(IGeometry other)
Parameters
otherIGeometry
Returns
Remarks

The geometry combinations which can be used with ReturnDistance are:
Point: Point, MultiPoint, Envelope, Polyline, Polygon, Line, CircularArc, EllipticArc, BezierCurve.
Multipoint: Point, MultiPoint, Envelope, Polyline, Polygon.
Envelope: Point, MultiPoint, Envelope, Line, CircularArc, EllipticArc, BezierCurve, PolyLine, Polygon.
PolyLine: Point, Multipoint, Envelope, PolyLine, Polygon.
Polygon: Point, Multipoint, Envelope, PolyLine, Polygon.
Line: Point, Envelope, Line, CircularArc, EllipticArc, BezierCurve.
CircularArc: Point, Envelope, Line, CircularArc, EllipticArc (not implemented yet), BezierCurve.
EllipticArc: Point, Envelope, Line, CircularArc (not implemented yet), EllipticArc (not implemented yet), BezierCurve (not implemented yet).
BezierCurve: Point, Envelope, Line, CircularArc, EllipticArc (not implemented yet), BezierCurve.
Note: To get the distance between a segment (Line, CircularArc, EllipticArc, BezierCurve) and a MultiPoint, PolyLine or Polygon, add that segment to a PolyLine.
ReturnNearestPoint(IPoint, esriSegmentExtension)
Creates and returns a point on this geometry nearest to the input point.
virtual IPoint ReturnNearestPoint(IPoint p, esriSegmentExtension extension)
Parameters
pIPointextensionesriSegmentExtension
Returns
Remarks

ReturnTurnDirection(ISegment)
Finds turn direction between two connected segments.
virtual int ReturnTurnDirection(ISegment otherSegment)
Parameters
otherSegmentISegment
Returns
Remarks
ReturnTurnDirection is only available for Lines and CircularArcs, not BezierCurves or EllipticArcs.

ReverseOrientation()
virtual void ReverseOrientation()
Rotate(IPoint, double)
Rotates about the specified origin point. The angle is in radians. The origin can be in a different spatial reference than the geometry being rotated.
virtual void Rotate(IPoint Origin, double rotationAngle)
Parameters
Remarks
An Envelope cannot be Rotated.

Scale(IPoint, double, double)
Scales about the specified origin using seperate horizonal and vertical scales. The origin point can be in a different spatial reference than the geometry being scaled.
virtual void Scale(IPoint Origin, double sx, double sy)
Parameters
Remarks
Note: Caution must be taken when scaling a CircularArc or a geometry containing CircularArc segments. Unless Abs(ScaleX) = Abs(ScaleY), the resulting CircularArcs will not retain the characteristics of the original geometry (since they remain CircularArcs).

//Create Point you wish to scale
IPoint startingPoint = new PointClass() as IPoint;
startingPoint.PutCoords(10, 10);
//Create a point to act as origin
IPoint origin = new PointClass() as IPoint;
origin.PutCoords(15, 15);
//Cast the startingPoint into the correct Interface
ITransform2D transformScalePoint = startingPoint as ITransform2D;
//Perform Scale
transformScalePoint.Scale(origin, .5, .5);
double x;
double y;
startingPoint.QueryCoords(out x, out y);
Debug.Print(x.ToString());
Debug.Print(y.ToString());
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.
virtual 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.
virtual void SetChordLengthTangentAtTo(IPoint tangent, bool setByUser)
Parameters
SetEmpty()
virtual void SetEmpty()
SetIDs(int, int)
Set the IDs on the segment's endpoints.
virtual void SetIDs(int fromID, int toID)
Parameters
SetMs(double, double)
Set the Ms on the segment's endpoints.
virtual void SetMs(double fromM, double toM)
Parameters
SetZs(double, double)
Set the Zs on the segment's endpoints.
virtual void SetZs(double fromZ, double toZ)
Parameters
SnapToSpatialReference()
virtual void SnapToSpatialReference()
SpatialReference
virtual ISpatialReference SpatialReference { get; set; }
Returns
SplitAtDistance(double, bool, out ISegment, out ISegment)
Split segment at specified distance.
virtual void SplitAtDistance(double distances, bool asRatio, out ISegment fromSegment, out ISegment toSegment)
Parameters
Remarks

SplitAtVertexAttribute(esriGeometryAttributes, double, out ISegment, out ISegment)
Splits the segment in two segments at the location corresponding to the attribute value.
virtual void SplitAtVertexAttribute(esriGeometryAttributes attributeType, double attributeValue, out ISegment fromSegment, out ISegment toSegment)
Parameters
attributeTypeesriGeometryAttributesattributeValuedoublefromSegmentISegmenttoSegmentISegment
SplitDivideLength(double, double, bool, ref int, ref ISegment)
Divide segment into smaller segments of the specified length.
virtual void SplitDivideLength(double Offset, double Length, bool asRatio, ref int numSplitSegments, ref ISegment splitSegments)
Parameters
Remarks

When using C# you must use the IGeometryBridge interface to call this method.
When using VBNET you must use the IGeometryBridge interface to call this method.
SynchronizeEmptyAttributes(ISegment)
Synchronize Empty Attributes.
virtual void SynchronizeEmptyAttributes(ISegment toSegment)
Parameters
toSegmentISegment
ToPoint
virtual IPoint ToPoint { get; set; }
Returns
Transform(esriTransformDirection, ITransformation)
Applies an arbitrary transformation. In particular, the transformation parameter can be either an affine transformation or a geographic transformation (datum shift).
virtual void Transform(esriTransformDirection Direction, ITransformation Transformation)
Parameters
DirectionesriTransformDirectionTransformationITransformation
VertexAttributeAware[esriGeometryAttributes]
Indicates if the segment is aware of the specified attribute type.
virtual bool VertexAttributeAware[esriGeometryAttributes attributeType] { get; set; }
Parameters
attributeTypeesriGeometryAttributes
Returns
VertexAttributeOn(esriGeometryAttributes, double)
Indicates if attributeValue is located on this segment.
virtual int VertexAttributeOn(esriGeometryAttributes attributeType, double attributeValue)
Parameters
attributeTypeesriGeometryAttributesattributeValuedouble