Documentation of 'georegression.struct.point.Point2D_I32' Java class
Point2D_I32
georegression.struct.point

Class Point2D_I32

    • Field Detail

      • x

        public int x
      • y

        public int y
    • Constructor Detail

      • Point2D_I32

        public Point2D_I32(int x,
                           int y)
      • Point2D_I32

        public Point2D_I32()
    • Method Detail

      • set

        public void set(int x,
                        int y)
      • setX

        public void setX(int x)
      • setY

        public void setY(int y)
      • getX

        public final int getX()
      • getY

        public final int getY()
      • distance2

        public int distance2(Point2D_I32 a)

        Returns the Euclidean distance squared from 'this' to 'a'. No floating point operations are used.

        d2 = (this.x-a.x)2 + (this.y-a.y)2

        Parameters:
        a - Point that distance is computed from.
        Returns:
        Euclidean distance squared.
      • copy

        public Point2D_I32 copy()
        Description copied from class: GeoTuple
        Generic copy routine. It is recommended that this be overridden with a faster implementation.
        Specified by:
        copy in class GeoTuple<Point2D_I32>
        Returns:
        An exact copy of this GeoTuple.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getDimension

        public int getDimension()
        Description copied from class: GeoTuple
        The dimensionality of space the tuple is contained in and the number of values it has.
        Specified by:
        getDimension in class GeoTuple<Point2D_I32>
        Returns:
        Dimensionality of the object.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.