HalfEdge class

Implementation of a half-edge data structure, also known as { @link https://en.wikipedia.org/wiki/Doubly_connected_edge_list Doubly connected edge list}.

@author {@link https://github.com/Mugen87|Mugen87}

Constructors

HalfEdge([Vector3? vertex])
Constructs a new half-edge.

Properties

hashCode int
The hash code for this object.
no setterinherited
next HalfEdge?
getter/setter pair
polygon Polygon?
getter/setter pair
prev HalfEdge?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
twin HalfEdge?
getter/setter pair
vertex Vector3
latefinal

Methods

getDirection(Vector3 result) Vector3
Computes the direction of this half edge. The method assumes the half edge has a valid reference to a previous half edge.
Returns the head of this half-edge. That's a reference to the own vertex.
length() double
Computes the length of this half-edge.
linkOpponent(HalfEdge? edge) HalfEdge
Links the given opponent half edge with this one.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
squaredLength() double
Computes the squared length of this half-edge.
tail() Vector3?
Returns the tail of this half-edge. That's a reference to the previous half-edge vertex.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited