Beispiel #1
0
 /**
  * @param x
  * @param y
  * @param z
  * @param w
  * @return the distance between the point described by this vector and the given x, y, z, w point.
  */
 @Override
 public double distance(final double x, final double y, final double z, final double w) {
   return MathUtils.sqrt(distanceSquared(x, y, z, w));
 }
Beispiel #2
0
 /**
  * @param destination
  * @return the distance between the point described by this vector and the given destination
  *     point.
  * @throws NullPointerException if destination is null.
  */
 @Override
 public double distance(final ReadOnlyVector4 destination) {
   return MathUtils.sqrt(distanceSquared(destination));
 }
Beispiel #3
0
 /**
  * @return the magnitude or distance between the origin (0, 0, 0, 0) and the point described by
  *     this vector (x, y, z, w). Effectively the square root of the value returned by {@link
  *     #lengthSquared()}.
  */
 @Override
 public double length() {
   return MathUtils.sqrt(lengthSquared());
 }