Class ADPLocation

    • Method Detail

      • add

        public ADPLocation add​(double x,
                               double y,
                               double z)
        Return a new location incremented axes
        Parameters:
        x - the x coordinate
        y - the y coordinate
        z - the z coordinate
        Returns:
        a new location
      • distance

        public double distance​(@NotNull
                               @NotNull ADPLocation location)
        Gets the magnitude of the location squared. Not world-aware and orientation independent.
        Parameters:
        location - the other location
        Returns:
        the magnitude
        Throws:
        IllegalArgumentException - for differing worlds
      • distanceSquared

        public double distanceSquared​(@NotNull
                                      @NotNull ADPLocation location)
        Get the squared distance between this location and another.
        Parameters:
        location - the other location
        Returns:
        the distance
        Throws:
        IllegalArgumentException - for differing worlds
      • serialize

        public String serialize()
        Serialize the location as String
        Returns:
        the serialized location
      • deserialize

        public static ADPLocation deserialize​(String serialized)
        Deserialize a string location
        Parameters:
        serialized - the location serialized
        Returns:
        a new parsed location or null