length method

double length()

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