Class Arc2d
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public class Arc2d : IParametricCurve2d
Constructors
Arc2d(Vector2d, Vector2d, Vector2d)
Create Arc around center, clockwise from start to end points.
Points must both be the same distance from center (ie on circle)
Declaration
public Arc2d(Vector2d vCenter, Vector2d vStart, Vector2d vEnd)
Parameters
Arc2d(Vector2d, Double, Double, Double)
Declaration
public Arc2d(Vector2d center, double radius, double startDeg, double endDeg)
Parameters
Fields
AngleEndDeg
Declaration
public double AngleEndDeg
Field Value
AngleStartDeg
Declaration
public double AngleStartDeg
Field Value
Center
Declaration
Field Value
IsReversed
Declaration
Field Value
Radius
Declaration
Field Value
Properties
ArcLength
Declaration
public double ArcLength { get; }
Property Value
Bounds
Declaration
public AxisAlignedBox2d Bounds { get; }
Property Value
Curvature
Declaration
public double Curvature { get; }
Property Value
HasArcLength
Declaration
public bool HasArcLength { get; }
Property Value
IsClosed
Declaration
public bool IsClosed { get; }
Property Value
Declaration
public bool IsTransformable { get; }
Property Value
P0
Declaration
public Vector2d P0 { get; }
Property Value
P1
Declaration
public Vector2d P1 { get; }
Property Value
ParamLength
Declaration
public double ParamLength { get; }
Property Value
SignedCurvature
Declaration
public double SignedCurvature { get; }
Property Value
Methods
Clone()
Declaration
public IParametricCurve2d Clone()
Returns
Distance(Vector2d)
Declaration
public double Distance(Vector2d point)
Parameters
Returns
NearestPoint(Vector2d)
Declaration
public Vector2d NearestPoint(Vector2d point)
Parameters
Returns
Reverse()
Declaration
SampleArcLength(Double)
Declaration
public Vector2d SampleArcLength(double a)
Parameters
Type |
Name |
Description |
Double |
a |
|
Returns
SampleT(Double)
Declaration
public Vector2d SampleT(double t)
Parameters
Type |
Name |
Description |
Double |
t |
|
Returns
SetFromCenterAndPoints(Vector2d, Vector2d, Vector2d)
Initialize Arc around center, clockwise from start to end points.
Points must both be the same distance from center (ie on circle)
Declaration
public void SetFromCenterAndPoints(Vector2d vCenter, Vector2d vStart, Vector2d vEnd)
Parameters
TangentT(Double)
Declaration
public Vector2d TangentT(double t)
Parameters
Type |
Name |
Description |
Double |
t |
|
Returns
Declaration
public void Transform(ITransform2 xform)
Parameters
Implements