Class Point3D.Float

java.lang.Object
org.bzdev.geom.Point3D
org.bzdev.geom.Point3D.Float
All Implemented Interfaces:
Cloneable
Enclosing class:
Point3D

public static class Point3D.Float extends Point3D
Class representing points in three dimensions using double-precision coordinates
  • Field Details

    • x

      public float x
      The X coordinate of this point
    • y

      public float y
      The Y coordinate of this point
    • z

      public float z
      The Z coordinate of this point
  • Constructor Details

    • Float

      public Float()
      Constructor.
    • Float

      public Float(double x, double y, double z)
      Constructor with coordinates.
      Parameters:
      x - the X coordinate of the point
      y - the Y coordinate of the point
      z - the Z coordinate of the point
  • Method Details

    • getX

      public double getX()
      Description copied from class: Point3D
      Get the X coordinate of this point.
      Specified by:
      getX in class Point3D
      Returns:
      the X coordinate
    • getY

      public double getY()
      Description copied from class: Point3D
      Get the Y coordinate of this point.
      Specified by:
      getY in class Point3D
      Returns:
      the Y coordinate
    • getZ

      public double getZ()
      Description copied from class: Point3D
      Get the Z coordinate of this point.
      Specified by:
      getZ in class Point3D
      Returns:
      the Z coordinate
    • setLocation

      public void setLocation(double x, double y, double z)
      Description copied from class: Point3D
      Set the location of this point given the location's coordinates.
      Specified by:
      setLocation in class Point3D
      Parameters:
      x - the X coordinate for this point's location
      y - the Y coordinate for this point's location
      z - the Z coordinate for this point's location
    • toString

      public String toString()
      Overrides:
      toString in class Object