/** * Compute the normal (perpendicular) distance to a vector described by a * vector taken from the origin. * Monotonically increasing for arc distances up to PI/2. * * @param v is the vector to compute a distance to. * @return the normal distance. */ public double normalDistance(final Vector v) { return Math.sqrt(normalDistanceSquared(v)); }
/** * Compute the normal (perpendicular) distance to a vector described by a * vector taken from the origin. * Monotonically increasing for arc distances up to PI/2. * * @param x is the x part of the vector to compute a distance to. * @param y is the y part of the vector to compute a distance to. * @param z is the z part of the vector to compute a distance to. * @return the normal distance. */ public double normalDistance(final double x, final double y, final double z) { return Math.sqrt(normalDistanceSquared(x, y, z)); }