Class TopoLine3Hfr
Topological 3D line (directed edge) with Fraction<decimal> coordinates.
Maintains connectivity to adjacent reversed line and owning triangle.
Corresponds to C++ topo_line3_t.
public class TopoLine3Hfr
- Inheritance
-
TopoLine3Hfr
- Inherited Members
- Extension Methods
Fields
P0
Start point.
public readonly TopoPoint3Hfr P0
Field Value
P1
End point.
public readonly TopoPoint3Hfr P1
Field Value
ReversedLine
The reversed (opposite direction) line sharing the same two endpoints. Null if no adjacent triangle shares this edge in reverse.
public TopoLine3Hfr ReversedLine
Field Value
Tri
The triangle that owns this directed line. Null if this line is not yet part of a triangle.
public TopoTri3Hfr Tri
Field Value
Methods
ClearCache()
Clears cached arrow and direction.
public void ClearCache()
GetArrow()
Gets the arrow vector (P1 - P0) in fraction coordinates. Cached after first computation.
public Vec3Hfr GetArrow()
Returns
GetDirection()
Gets the normalized direction vector in double precision. Cached after first computation.
public Vec3d GetDirection()
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.