src/main/java/ch/frostnova/force/based/layout/geom/Vector.java
public final Vector normalized() {
        double length = length();
        if (length == 0) {
            return this;
        }
        return scaled(1 / length);
    }
/**
     * Returns an normalized version of this vector (with length=1, unless the vector is 0/0).
     *
     * @return normalized vector
     */
Returns an normalized version of this vector (with length=1, unless the vector is 0/0).
@return normalized vector
Returns an normalized version of this vector ( with length = 1 unless the vector is 0 / 0 ) . @return normalized vector
public final Vector normalized() {
        double length = length();
        if (length == 0) {
            return this;
        }
        return scaled(1 / length);
    }
public final Vector normalized ( ) { double length = length ( ) ; if ( length == 0 ) { return this ; } return scaled ( 1 / length ) ; }
Returns an normalized version of this vector (with length=1, unless the vector is 0/0).
Returns an normalized version of this vector ( with length = 1 unless the vector is 0 / 0 ) .