Class Arc2D
Describes a circular Arc in 2D. Implements the ICurve2D interface.
Inheritance
System.Object
Arc2D
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: CADability.dll
Syntax
[Serializable]
public class Arc2D : Circle2D, ICurve2D, IQuadTreeInsertable, I2DIntersectable, ISerializable
Constructors
|
Improve this Doc
View Source
Arc2D(GeoPoint2D, Double, Angle, SweepAngle)
Constructs a circular arc in 2D.
Declaration
public Arc2D(GeoPoint2D center, double radius, Angle start, SweepAngle sweep)
Parameters
| Type |
Name |
Description |
| GeoPoint2D |
center |
Center of the arc
|
| System.Double |
radius |
Radius of the Arc
|
| Angle |
start |
Startangle of the arc (x-axis is 0)
|
| SweepAngle |
sweep |
Sweepangle of the arc -2pi<=s<=2pi
|
|
Improve this Doc
View Source
Arc2D(GeoPoint2D, Double, GeoPoint2D, GeoPoint2D, Boolean)
Declaration
public Arc2D(GeoPoint2D center, double radius, GeoPoint2D StartPoint, GeoPoint2D EndPoint, bool counterclock)
Parameters
|
Improve this Doc
View Source
Arc2D(SerializationInfo, StreamingContext)
Constructor required by deserialization
Declaration
protected Arc2D(SerializationInfo info, StreamingContext context)
Parameters
| Type |
Name |
Description |
| System.Runtime.Serialization.SerializationInfo |
info |
SerializationInfo
|
| System.Runtime.Serialization.StreamingContext |
context |
StreamingContext
|
Properties
|
Improve this Doc
View Source
EndDirection
Declaration
public override GeoVector2D EndDirection { get; }
Property Value
Overrides
|
Improve this Doc
View Source
EndParameter
Declaration
public double EndParameter { get; }
Property Value
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
EndPoint
Declaration
public override GeoPoint2D EndPoint { get; set; }
Property Value
Overrides
|
Improve this Doc
View Source
IsClosed
Declaration
public override bool IsClosed { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Overrides
|
Improve this Doc
View Source
Length
Declaration
public override double Length { get; }
Property Value
| Type |
Description |
| System.Double |
|
Overrides
|
Improve this Doc
View Source
SegmentArea
Declaration
public double SegmentArea { get; }
Property Value
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
StartDirection
Declaration
public override GeoVector2D StartDirection { get; }
Property Value
Overrides
|
Improve this Doc
View Source
StartParameter
Declaration
public double StartParameter { get; }
Property Value
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
StartPoint
Declaration
public override GeoPoint2D StartPoint { get; set; }
Property Value
Overrides
|
Improve this Doc
View Source
Sweep
Declaration
public override double Sweep { get; }
Property Value
| Type |
Description |
| System.Double |
|
Overrides
|
Improve this Doc
View Source
SweepAngle
Declaration
public SweepAngle SweepAngle { get; }
Property Value
Methods
|
Improve this Doc
View Source
AddToGraphicsPath(GraphicsPath, Boolean)
Declaration
public override void AddToGraphicsPath(GraphicsPath path, bool forward)
Parameters
| Type |
Name |
Description |
| System.Drawing.Drawing2D.GraphicsPath |
path |
|
| System.Boolean |
forward |
|
Overrides
|
Improve this Doc
View Source
Approximate(Boolean, Double)
Declaration
public override ICurve2D Approximate(bool linesOnly, double maxError)
Parameters
| Type |
Name |
Description |
| System.Boolean |
linesOnly |
|
| System.Double |
maxError |
|
Returns
Overrides
|
Improve this Doc
View Source
Clone()
Declaration
public override ICurve2D Clone()
Returns
Overrides
|
Improve this Doc
View Source
CloneReverse(Boolean)
Declaration
public override ICurve2D CloneReverse(bool reverse)
Parameters
| Type |
Name |
Description |
| System.Boolean |
reverse |
|
Returns
Overrides
|
Improve this Doc
View Source
Copy(ICurve2D)
Declaration
public override void Copy(ICurve2D toCopyFrom)
Parameters
| Type |
Name |
Description |
| ICurve2D |
toCopyFrom |
|
Overrides
|
Improve this Doc
View Source
DirectionAt(Double)
Declaration
public override GeoVector2D DirectionAt(double Position)
Parameters
| Type |
Name |
Description |
| System.Double |
Position |
|
Returns
Overrides
|
Improve this Doc
View Source
From2PointsAndTangents(GeoPoint2D, GeoVector2D, GeoPoint2D, GeoVector2D)
Declaration
public static Arc2D From2PointsAndTangents(GeoPoint2D sp, GeoVector2D sd, GeoPoint2D ep, GeoVector2D ed)
Parameters
Returns
|
Improve this Doc
View Source
From3Points(GeoPoint2D, GeoPoint2D, GeoPoint2D)
Declaration
public static Arc2D From3Points(GeoPoint2D sp, GeoPoint2D mp, GeoPoint2D ep)
Parameters
Returns
|
Improve this Doc
View Source
GetArea()
Declaration
public override double GetArea()
Returns
| Type |
Description |
| System.Double |
|
Overrides
|
Improve this Doc
View Source
GetExtendedHitTest()
Declaration
public override IQuadTreeInsertable GetExtendedHitTest()
Returns
Overrides
|
Improve this Doc
View Source
GetExtent()
Declaration
public override BoundingRect GetExtent()
Returns
Overrides
|
Improve this Doc
View Source
GetFused(ICurve2D, Double)
Declaration
public override ICurve2D GetFused(ICurve2D toFuseWith, double precision)
Parameters
| Type |
Name |
Description |
| ICurve2D |
toFuseWith |
|
| System.Double |
precision |
|
Returns
Overrides
|
Improve this Doc
View Source
GetModified(ModOp2D)
Declaration
public override ICurve2D GetModified(ModOp2D m)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
GetObjectData(SerializationInfo, StreamingContext)
Implements System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
| Type |
Name |
Description |
| System.Runtime.Serialization.SerializationInfo |
info |
The System.Runtime.Serialization.SerializationInfo to populate with data.
|
| System.Runtime.Serialization.StreamingContext |
context |
The destination (System.Runtime.Serialization.StreamingContext) for this serialization.
|
Overrides
|
Improve this Doc
View Source
HitTest(ref BoundingRect, Boolean)
Declaration
public override bool HitTest(ref BoundingRect Rect, bool IncludeControlPoints)
Parameters
| Type |
Name |
Description |
| BoundingRect |
Rect |
|
| System.Boolean |
IncludeControlPoints |
|
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
|
Improve this Doc
View Source
Intersect(ICurve2D)
Declaration
public override GeoPoint2DWithParameter[] Intersect(ICurve2D IntersectWith)
Parameters
| Type |
Name |
Description |
| ICurve2D |
IntersectWith |
|
Returns
Overrides
|
Improve this Doc
View Source
Intersect(GeoPoint2D, GeoPoint2D)
Declaration
public override GeoPoint2DWithParameter[] Intersect(GeoPoint2D StartPoint, GeoPoint2D EndPoint)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
MakeGeoObject(Plane)
Declaration
public override IGeoObject MakeGeoObject(Plane p)
Parameters
| Type |
Name |
Description |
| Plane |
p |
|
Returns
Overrides
|
Improve this Doc
View Source
MinDistance(ICurve2D)
Declaration
public override double MinDistance(ICurve2D Other)
Parameters
Returns
| Type |
Description |
| System.Double |
|
Overrides
|
Improve this Doc
View Source
Parallel(Double, Boolean, Double, Double)
Declaration
public override ICurve2D Parallel(double Dist, bool approxSpline, double precision, double roundAngle)
Parameters
| Type |
Name |
Description |
| System.Double |
Dist |
|
| System.Boolean |
approxSpline |
|
| System.Double |
precision |
|
| System.Double |
roundAngle |
|
Returns
Overrides
|
Improve this Doc
View Source
PointAt(Double)
Declaration
public override GeoPoint2D PointAt(double Position)
Parameters
| Type |
Name |
Description |
| System.Double |
Position |
|
Returns
Overrides
|
Improve this Doc
View Source
PositionOf(GeoPoint2D)
Declaration
public override double PositionOf(GeoPoint2D p)
Parameters
Returns
| Type |
Description |
| System.Double |
|
Overrides
|
Improve this Doc
View Source
Project(Plane, Plane)
Declaration
public override ICurve2D Project(Plane fromPlane, Plane toPlane)
Parameters
| Type |
Name |
Description |
| Plane |
fromPlane |
|
| Plane |
toPlane |
|
Returns
Overrides
|
Improve this Doc
View Source
ReinterpretParameter(ref Double)
Declaration
public override bool ReinterpretParameter(ref double p)
Parameters
| Type |
Name |
Description |
| System.Double |
p |
|
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
|
Improve this Doc
View Source
Reverse()
Declaration
public override void Reverse()
Overrides
|
Improve this Doc
View Source
TangentPointsToAngle(GeoVector2D)
Declaration
public override double[] TangentPointsToAngle(GeoVector2D direction)
Parameters
Returns
| Type |
Description |
| System.Double[] |
|
Overrides
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
| Type |
Description |
| System.String |
|
Overrides
|
Improve this Doc
View Source
Trim(Double, Double)
Declaration
public override ICurve2D Trim(double StartPos, double EndPos)
Parameters
| Type |
Name |
Description |
| System.Double |
StartPos |
|
| System.Double |
EndPos |
|
Returns
Overrides
Implements
System.Runtime.Serialization.ISerializable