Class PathElement3i

    • Field Detail

      • toX

        protected final int toX
        Target point.
      • toY

        protected final int toY
        Target point.
      • toZ

        protected final int toZ
        Target point.
    • Constructor Detail

      • PathElement3i

        PathElement3i​(PathElementType type,
                      int tox,
                      int toy,
                      int toz)
        Constructor.
        Parameters:
        type - is the type of the element.
        tox - the x coordinate of the target point.
        toy - the x coordinate of the target point.
        toz - the z coordinate of the target point.
    • Method Detail

      • equals

        @Pure
        public abstract boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • hashCode

        @Pure
        public abstract int hashCode()
        Overrides:
        hashCode in class Object
      • getToX

        @Pure
        public final int getToX()
        Description copied from interface: PathElement3ai
        Replies the x coordinate of the target point.
        Specified by:
        getToX in interface PathElement3ai
        Returns:
        the x coordinate.
      • getToY

        @Pure
        public final int getToY()
        Description copied from interface: PathElement3ai
        Replies the y coordinate of the target point.
        Specified by:
        getToY in interface PathElement3ai
        Returns:
        the y coordinate.
      • getToZ

        @Pure
        public final int getToZ()
        Description copied from interface: PathElement3ai
        Replies the z coordinate of the target point.
        Specified by:
        getToZ in interface PathElement3ai
        Returns:
        the z coordinate.
      • toArray

        @Pure
        public abstract int[] toArray()
        Copy the coords into an array, except the source point.
        Returns:
        the array of the points, except the source point.