length method
Computes the length of this half-edge.
Implementation
double length() {
final tail = this.tail();
final head = this.head();
if ( tail != null ) {
return tail.distanceTo( head );
}
return - 1;
}
Computes the length of this half-edge.
double length() {
final tail = this.tail();
final head = this.head();
if ( tail != null ) {
return tail.distanceTo( head );
}
return - 1;
}