squaredLength method

double squaredLength()

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;
}