Class Point3D

  • All Implemented Interfaces:
    java.io.Serializable

    public final class Point3D
    extends java.lang.Object
    implements java.io.Serializable
    Basic 3D point class.
    See Also:
    Serialized Form
    • Field Detail

      • x

        public double x
      • y

        public double y
      • z

        public double z
    • Constructor Detail

      • Point3D

        public Point3D()
      • Point3D

        public Point3D​(Point3D other)
      • Point3D

        public Point3D​(double x,
                       double y,
                       double z)
    • Method Detail

      • construct

        public static Point3D construct​(double x,
                                        double y,
                                        double z)
      • setCoords

        public void setCoords​(double x,
                              double y,
                              double z)
      • setCoords

        public void setCoords​(Point3D other)
      • setZero

        public void setZero()
      • normalize

        public void normalize()
      • dotProduct

        public double dotProduct​(Point3D other)
      • sqrLength

        public double sqrLength()
      • length

        public double length()
      • sub

        public void sub​(Point3D other)
      • scale

        public void scale​(double f,
                          Point3D other)
      • mul

        public void mul​(double factor)
      • _setNan

        void _setNan()
      • _isNan

        boolean _isNan()
      • equals

        public boolean equals​(Point3D other)
      • equals

        public boolean equals​(java.lang.Object other_)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object