Class SphericalPoint

    • Constructor Detail

      • SphericalPoint

        public SphericalPoint​(double radius,
                              double theta,
                              double phi)
        constructs a new SphericalPoint.
        Parameters:
        radius - double; radius
        theta - double; theta
        phi - double; phi
    • Method Detail

      • getPhi

        public double getPhi()
        Returns:
        phi
      • getRadius

        public double getRadius()
        Returns:
        radius
      • getTheta

        public double getTheta()
        Returns:
        theta
      • toCartesianPoint

        public CartesianPoint toCartesianPoint()
        converts a spherical point to a Cartesian point.
        Returns:
        the Cartesian point
      • toCartesianPoint

        public static CartesianPoint toCartesianPoint​(SphericalPoint point)
        converts a spherical point to a Cartesian point.
        Parameters:
        point - SphericalPoint; the spherical point
        Returns:
        the Cartesian point
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object