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