/** * Compute the straight-line distance to a point described by the * vector taken from the origin. * Monotonically increasing for arc distances up to PI. * * @param v is the vector to compute a distance to. * @return the linear distance. */ public double linearDistance(final Vector v) { return Math.sqrt(linearDistanceSquared(v)); }
/** * Compute the straight-line distance to a point described by the * vector taken from the origin. * Monotonically increasing for arc distances up to PI. * * @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 linear distance. */ public double linearDistance(final double x, final double y, final double z) { return Math.sqrt(linearDistanceSquared(x, y, z)); }