BiArcSegment

References
public sealed class BiArcSegment
Represents a segment of a bi-arc curve, or the family of transition points of a bi-arc family. A BiArcSegment is always either a line, or an arc.

Constructors

BiArcSegment

#
public BiArcSegment(Arc arc)
Create a segment from an arc.
arc (Arc)

BiArcSegment

#
public BiArcSegment(Line line)
Create a segment from a line.
line (Line)

BiArcSegment

#
public BiArcSegment(Point3d a, Point3d b, Vector3d tangentAtA)
Create a segment from a start point, end point and a start tangent.
a (Point3d)
b (Point3d)
tangentAtA (Vector3d)

Properties

Arc

#
public Arc Arc { get; }
Gets the arc data.

IsArc

#
public bool IsArc { get; }
Gets whether this segment is arc shaped.

IsLine

#
public bool IsLine { get; }
Gets whether this segment is line shaped.

IsValid

#
public bool IsValid { get; }
Gets whether this segment is valid.

Length

#
public double Length { get; }
Gets the length of this segment.

Line

#
public Line Line { get; }
Gets the line data.

Pa

#
public Point3d Pa { get; }
Gets the start point of the segment.

Pb

#
public Point3d Pb { get; }
Gets the end point of the segment.

Shape

#
public object Shape { get; }
Gets either the Line or the Arc.

Ta

#
public Vector3d Ta { get; }
Gets the start tangent of the segment.

Tb

#
public Vector3d Tb { get; }
Gets the end tangent of the segment.

Unset

#
public static BiArcSegment Unset { get; }

Methods

Append

#
public void Append(PolyCurve curve)
Append this segment to a polycurve.
curve (PolyCurve)

Evaluate

#
public Point3d Evaluate(double t)
Gets a point linearly interpolated along the length of the segment.
t (double)

Reverse

#
public BiArcSegment Reverse()
Reverse the direction of this segment.

ToCurve

#
public Curve ToCurve()
Convert this segment to a Curve type.