Java Distance Calculate squareLength(final float x1, final float y1, final float z1, final float x2, final float y2, final float z2)

Here you can find the source of squareLength(final float x1, final float y1, final float z1, final float x2, final float y2, final float z2)

Description

square Length

License

Apache License

Declaration

public static float squareLength(final float x1, final float y1, final float z1, final float x2, final float y2,
        final float z2) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {

    public static float squareLength(final float x1, final float y1, final float z1, final float x2, final float y2,
            final float z2) {

        final float dx = x1 - x2;
        final float dy = y1 - y2;
        final float dz = z1 - z2;

        return dx * dx + dy * dy + dz * dz;
    }/*from  w w w .j  ava  2s .c  o m*/
}

Related

  1. squareDist31TileMetric(int x1, int y1, int x2, int y2)
  2. squareDistance(double pointAX, double pointAY, double pointBX, double pointBY)
  3. squareDistance(double x1, double y1, double x2, double y2)
  4. squaredistance(double[] v1, double[] v2)
  5. squareDistance(final double[] a, final double[] b)
  6. squareSegmentDistance(float[] p, int a, int b, int c)