Vector2d.distanceSquared

Return the squared distance between <code>(x1, y1)</code> and <code>(x2, y2)</code>.

@param x1 the x component of the first vector @param y1 the y component of the first vector @param x2 the x component of the second vector @param y2 the y component of the second vector @return the euclidean distance squared

  1. double distanceSquared(Vector2d v)
  2. double distanceSquared(double x, double y)
  3. double distanceSquared(double x1, double y1, double x2, double y2)
    struct Vector2d
    static
    double
    distanceSquared
    (
    double x1
    ,
    double y1
    ,
    double x2
    ,
    double y2
    )

Meta