Documentation of 'jcckit.util.Point' Java class
Point
jcckit.util

Class Point

  • Direct Known Subclasses:
    DataPoint, GraphPoint


    public class Point
    extends java.lang.Object
    Immutable class of a two-dimensional point with floating point coordinates.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Point(double[] vector)
      Creates an instance for the specified vector.
      Point(double x, double y)
      Creates an instance for the specified coordinates.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      double getX()
      Returns the x-coordinate of the point.
      double getY()
      Returns the y-coordinate of the point.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Point

        public Point(double[] vector)
        Creates an instance for the specified vector. The value of the first/second element of vector denotes the x/y value. If vector is null or not long enough 0 will be used as default values.
      • Point

        public Point(double x,
                     double y)
        Creates an instance for the specified coordinates.
    • Method Detail

      • getX

        public double getX()
        Returns the x-coordinate of the point.
      • getY

        public double getY()
        Returns the y-coordinate of the point.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.