Class PathElement3d

    • Field Detail

      • toX

        protected final double toX
        Target point.
      • toY

        protected final double toY
        Target point.
      • toZ

        protected final double toZ
        Target point.
    • Constructor Detail

      • PathElement3d

        PathElement3d​(PathElementType type,
                      double tox,
                      double toy,
                      double toz)
        Constructor.
        Parameters:
        type - is the type of the element.
        tox - the x coordinate of the target point.
        toy - the y 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 double getToX()
        Description copied from interface: PathElement3afp
        Replies the x coordinate of the target point.
        Specified by:
        getToX in interface PathElement3afp
        Returns:
        the x coordinate.
      • getToY

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

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

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