Class Zphi


  • public final class Zphi
    extends java.lang.Object
    Class for storing a position on the unit sphere as a (z,phi)-tuple.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      double phi
      Longitude in radians; Range [0; 2Pi].
      double z
      Cosine of the colatitude, or z component of unit vector; Range [-1;1].
    • Constructor Summary

      Constructors 
      Constructor Description
      Zphi()
      Default constructor
      Zphi​(double z_, double phi_)
      Creation from individual components
      Zphi​(Pointing ptg)
      Conversion from Pointing
      Zphi​(Vec3 v)
      Conversion from Vec3
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • z

        public double z
        Cosine of the colatitude, or z component of unit vector; Range [-1;1].
      • phi

        public double phi
        Longitude in radians; Range [0; 2Pi].
    • Constructor Detail

      • Zphi

        public Zphi()
        Default constructor
      • Zphi

        public Zphi​(double z_,
                    double phi_)
        Creation from individual components
      • Zphi

        public Zphi​(Vec3 v)
        Conversion from Vec3
    • Method Detail

      • toString

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

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

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