Documentation API of the 'hephysics.vec.SpacePoint' Java class
SpacePoint
hephysics.vec

Class SpacePoint

    • Constructor Detail

      • SpacePoint

        public SpacePoint()
        Default constructor. Sets point to be the origin (0,0,0)
      • SpacePoint

        public SpacePoint(SpacePoint spt)
        Copy constructor
        Parameters:
        spt - SpacePoint to copy
    • Method Detail

      • v

        public double[] v()
        Returns the space point as a double array in its internal representation
        See Also:
        getRepresentation()
      • magnitude

        public double magnitude()
      • magnitudeSquared

        public double magnitudeSquared()
      • x

        public double x()
        Cartesian x
      • y

        public double y()
        Cartesian y
      • z

        public double z()
        Cartesian z
      • rxy

        public double rxy()
        Cylindrical r
        Returns:
        double
      • phi

        public double phi()
        Cylindrical phi
        Returns:
        double
      • rxyz

        public double rxyz()
        Spherical r
        Returns:
        double
      • theta

        public double theta()
        Spherical theta
        Returns:
        double
      • cosPhi

        public double cosPhi()
        cos(phi)
      • sinPhi

        public double sinPhi()
        sin(phi)
      • sinTheta

        public double sinTheta()
        sin(theta)
        Returns:
        double
      • cosTheta

        public double cosTheta()
        cos(theta)
        Returns:
        double
      • toString

        public String toString()
        Output Stream
        Overrides:
        toString in class Object
        Returns:
        String representation of object
      • equals

        public boolean equals(SpacePoint spt,                      double precision)
        Tests for equality within errors
        Parameters:
        spt - a SpacePoint to compare against
        precision - the precision of the comparison
        Returns:
        true if each of the components is within precision of the components of spt
      • equals

        public boolean equals(Hep3Vector spt,                      double precision)
        Tests for equality within errors
        Parameters:
        spt - a Hep3Vector to compare against
        precision - the precision of the comparison
        Returns:
        true if each of the components is within precision of the components of spt
      • equals

        public boolean equals(SpacePoint x)
        Tests for equality
        Parameters:
        x - SpacePoint to compare
        Returns:
        true if objects are equal
      • notEquals

        public boolean notEquals(SpacePoint spt)
        Inequality
        Parameters:
        spt - SpacePoint to compare
        Returns:
        true if objects are not equal
      • distance

        public static double distance(SpacePoint spt1,                              SpacePoint spt2)
        Return the distance between two space points.
        Parameters:
        spt1 - SpacePoint 1
        spt2 - SpacePoint 2
        Returns:
        Euclidean distance between points
      • clone

        public Object clone()
        Clone
        Overrides:
        clone in class Object
        Returns:
        a copy of this object
      • getCartesianArray

        public double[] getCartesianArray()
        Returns:
        array of doubles, cartesian representation

DMelt 1.2 © DataMelt by jWork.ORG

Warning: You see this message because an access to the DatMelt documentation for third-party Java classes is denied. Guests can only view jhplot Java API. To enable the description of all Java classes of dataMelt, please request the full DataMelt membership.

If you are already a full member, please login to the DataMelt member area before visiting this documentation.