public float distance(float x, float y, float z, float w) { return (float) Math.sqrt(distanceSquared(x, y, z, w)); }
public float distance(float x, float y, float z, float w) { return (float) Math.sqrt(distanceSquared(x, y, z, w)); }
/** * Return the distance between <code>(x1, y1, z1, w1)</code> and <code>(x2, y2, z2, w2)</code>. * * @param x1 * the x component of the first vector * @param y1 * the y component of the first vector * @param z1 * the z component of the first vector * @param w1 * the w component of the first vector * @param x2 * the x component of the second vector * @param y2 * the y component of the second vector * @param z2 * the z component of the second vector * @param w2 * the 2 component of the second vector * @return the euclidean distance */ public static float distance(float x1, float y1, float z1, float w1, float x2, float y2, float z2, float w2) { return (float) Math.sqrt(distanceSquared(x1, y1, z1, w1, x2, y2, z2, w2)); }
/** * Return the distance between <code>(x1, y1, z1, w1)</code> and <code>(x2, y2, z2, w2)</code>. * * @param x1 * the x component of the first vector * @param y1 * the y component of the first vector * @param z1 * the z component of the first vector * @param w1 * the w component of the first vector * @param x2 * the x component of the second vector * @param y2 * the y component of the second vector * @param z2 * the z component of the second vector * @param w2 * the 2 component of the second vector * @return the euclidean distance */ public static float distance(float x1, float y1, float z1, float w1, float x2, float y2, float z2, float w2) { return (float) Math.sqrt(distanceSquared(x1, y1, z1, w1, x2, y2, z2, w2)); }
public float distanceSquared(Vector4fc v) { return distanceSquared(v.x(), v.y(), v.z(), v.w()); }
public float distanceSquared(Vector4fc v) { return distanceSquared(v.x(), v.y(), v.z(), v.w()); }