Class OrientedPoint2i

    • Constructor Detail

      • OrientedPoint2i

        public OrientedPoint2i()
        Construct an empty oriented point.
      • OrientedPoint2i

        public OrientedPoint2i​(Tuple2D<?> point)
        Construct an oriented point from a point.
        Parameters:
        point - the point.
      • OrientedPoint2i

        public OrientedPoint2i​(int x,
                               int y)
        Construct an oriented point from the two given coordinates.
        Parameters:
        x - x coordinate of the point.
        y - y coordinate of the point.
      • OrientedPoint2i

        public OrientedPoint2i​(Point2D<?,​?> point,
                               Vector2D<?,​?> vector)
        Construct an oriented point from a point and a tangent vector.
        Parameters:
        point - the point.
        vector - the tangent vector.
      • OrientedPoint2i

        public OrientedPoint2i​(int x,
                               int y,
                               int tanX,
                               int tanY)
        Construct an oriented point from the two given coordinates.
        Parameters:
        x - x coordinate of the point.
        y - y coordinate of the point.
        tanX - x coordinate of the vector.
        tanY - y coordinate of the vector.
    • Method Detail

      • hashCode

        @Pure
        public int hashCode()
        Description copied from interface: Tuple2D
        Returns a hash code value based on the data values in this object. Two different Tuple2D objects with identical data values (i.e., Tuple2D.equals(Object) returns true) will return the same hash code value. Two objects with different data members may return the same hash value, although this is not likely.
        Specified by:
        hashCode in interface Tuple2D<Point2i>
        Overrides:
        hashCode in class Tuple2i<Point2i>
        Returns:
        the integer hash code value
      • getTangentX

        public double getTangentX()
        Description copied from interface: OrientedPoint2D
        Replies the X coordinate of the direction vector. If this point is not part of a polyline, the direction vector is null.
        Specified by:
        getTangentX in interface OrientedPoint2D<Point2i,​Vector2i>
        Returns:
        the x coordinate of the direction vector.
      • itx

        public int itx()
        Description copied from interface: OrientedPoint2D
        Replies the X coordinate of the direction vector. If this point is not part of a polyline, the direction vector is null.
        Specified by:
        itx in interface OrientedPoint2D<Point2i,​Vector2i>
        Returns:
        the x coordinate of the direction vector.
      • getTangentY

        public double getTangentY()
        Description copied from interface: OrientedPoint2D
        Replies the Y coordinate of the direction vector. If this point is not part of a polyline, the direction vector is null.
        Specified by:
        getTangentY in interface OrientedPoint2D<Point2i,​Vector2i>
        Returns:
        the y coordinate of the direction vector.
      • ity

        public int ity()
        Description copied from interface: OrientedPoint2D
        Replies the Y coordinate of the direction vector. If this point is not part of a polyline, the direction vector is null.
        Specified by:
        ity in interface OrientedPoint2D<Point2i,​Vector2i>
        Returns:
        the y coordinate of the direction vector.