Class OrientedPoint2dfx

    • Constructor Detail

      • OrientedPoint2dfx

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

        public OrientedPoint2dfx​(Tuple2D<?> tuple)
        Constructor by copy.
        Parameters:
        tuple - the tuple to copy.
      • OrientedPoint2dfx

        public OrientedPoint2dfx​(Tuple2dfx<?> tuple)
        Constructor by setting.
        Parameters:
        tuple - the tuple to set.
      • OrientedPoint2dfx

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

        public OrientedPoint2dfx​(javafx.beans.property.DoubleProperty x,
                                 javafx.beans.property.DoubleProperty y)
        Construct an oriented point from the two given coordinates.
        Parameters:
        x - x coordinate of the point.
        y - y coordinate of the point.
      • OrientedPoint2dfx

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

        public OrientedPoint2dfx​(Point2dfx point,
                                 Vector2dfx tangent)
        Constructor by setting from a point and a tangent vector.
        Parameters:
        point - the point.
        tangent - the tangent vector.
      • OrientedPoint2dfx

        public OrientedPoint2dfx​(double x,
                                 double y,
                                 double tanX,
                                 double 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<Point2dfx>
        Overrides:
        hashCode in class Tuple2dfx<Point2dfx>
        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<Point2dfx,​Vector2dfx>
        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<Point2dfx,​Vector2dfx>
        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<Point2dfx,​Vector2dfx>
        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<Point2dfx,​Vector2dfx>
        Returns:
        the y coordinate of the direction vector.
      • tanXProperty

        @Pure
        public javafx.beans.property.DoubleProperty tanXProperty()
        Replies the property that is the x coordinate of the tangent vector.
        Returns:
        the tangent vector x property.
      • tanYProperty

        @Pure
        public javafx.beans.property.DoubleProperty tanYProperty()
        Replies the property that is the y coordinate of the tangent vector.
        Returns:
        the tangent vector y property.
      • norXProperty

        @Pure
        javafx.beans.property.ReadOnlyDoubleProperty norXProperty()
        Replies the property that is the x coordinate of the normal vector.
        Returns:
        the normal vector x property.
      • norYProperty

        @Pure
        javafx.beans.property.ReadOnlyDoubleProperty norYProperty()
        Replies the property that is the y coordinate of the normal vector.
        Returns:
        the normal vector y property.
      • getNormalX

        public double getNormalX()
        Description copied from interface: OrientedPoint2D
        Replies the X coordinate of the normal vector. If this point is not part of a polyline, the normal vector is null.
        Specified by:
        getNormalX in interface OrientedPoint2D<Point2dfx,​Vector2dfx>
        Returns:
        the x coordinate of the normal vector.
      • inx

        public int inx()
        Description copied from interface: OrientedPoint2D
        Replies the X coordinate of the normal vector. If this point is not part of a polyline, the normal vector is null.
        Specified by:
        inx in interface OrientedPoint2D<Point2dfx,​Vector2dfx>
        Returns:
        the x coordinate of the normal vector.
      • getNormalY

        public double getNormalY()
        Description copied from interface: OrientedPoint2D
        Replies the Y coordinate of the normal vector. If this point is not part of a polyline, the normal vector is null.
        Specified by:
        getNormalY in interface OrientedPoint2D<Point2dfx,​Vector2dfx>
        Returns:
        the y coordinate of the normal vector.
      • iny

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