Documentation of 'math.geom2d.line.InvertedRay2D' Java class
InvertedRay2D
math.geom2d.line

Class InvertedRay2D

    • Constructor Detail

      • InvertedRay2D

        public InvertedRay2D()
        Empty constructor for Ray2D. Default is ray starting at origin, and having a slope of 1*dx and 0*dy.
      • InvertedRay2D

        public InvertedRay2D(Point2D point1,
                             Point2D point2)
        Creates a new Ray2D, originating from point1<\code>, and going in the direction of point2<\code>.
      • InvertedRay2D

        public InvertedRay2D(double x1,
                             double y1,
                             double dx,
                             double dy)
        Creates a new Ray2D, originating from point (x1,y1)<\code>, and going in the direction defined by vector (dx, dy)<\code>.
      • InvertedRay2D

        public InvertedRay2D(Point2D point,
                             double dx,
                             double dy)
        Creates a new Ray2D, originating from point point<\code>, and going in the direction defined by vector (dx,dy)<\code>.
      • InvertedRay2D

        public InvertedRay2D(Point2D point,
                             Vector2D vector)
        Creates a new Ray2D, originating from point point<\code>, and going in the direction specified by vector<\code>.
      • InvertedRay2D

        public InvertedRay2D(Point2D point,
                             double angle)
        Creates a new Ray2D, originating from point point<\code>, and going in the direction specified by angle<\code> (in radians).
      • InvertedRay2D

        public InvertedRay2D(double x,
                             double y,
                             double angle)
        Creates a new Ray2D, originating from point (x, y)<\code>, and going in the direction specified by angle<\code> (in radians).
      • InvertedRay2D

        public InvertedRay2D(LinearShape2D line)
        Define a new Ray, with same characteristics as given object.
    • Method Detail

      • create

        @Deprecated
        public static InvertedRay2D create(Point2D target,
                                                       Vector2D direction)
        Deprecated. since 0.11.1
        Static factory for creating a new inverted ray with given direction to target.
      • appendPath

        public java.awt.geom.GeneralPath appendPath(java.awt.geom.GeneralPath path)
        Throws an infiniteShapeException
        Specified by:
        appendPath in interface ContinuousCurve2D
        Parameters:
        path - a path to modify
        Returns:
        the modified path
      • getGeneralPath

        public java.awt.geom.GeneralPath getGeneralPath()
        Throws an infiniteShapeException
      • point

        public Point2D point(double t)
        Description copied from interface: Curve2D
        Returns the point located at the given position on the curve. If the parameter lies outside the definition range, the parameter corresponding to the closest bound is used instead. This method can be used to draw an approximated outline of a curve, by selecting multiple values for t and drawing lines between them.
        Specified by:
        point in interface Curve2D
      • t0

        public double t0()
        Returns Negative infinity.
        Specified by:
        t0 in interface Curve2D
      • getT0

        @Deprecated
        public double getT0()
        Deprecated. replaced by t0() (since 0.11.1).
        Specified by:
        getT0 in interface Curve2D
      • t1

        public double t1()
        Returns 0.
        Specified by:
        t1 in interface Curve2D
      • getT1

        @Deprecated
        public double getT1()
        Deprecated. replaced by t1() (since 0.11.1).
        Specified by:
        getT1 in interface Curve2D
      • isBounded

        public boolean isBounded()
        Always returns false, because n inverted ray is not bounded.
        Specified by:
        isBounded in interface Shape2D
      • contains

        public boolean contains(double x,
                                double y)
        Description copied from interface: Shape2D
        Checks if the shape contains the planar point defined by (x,y).
        Specified by:
        contains in interface Shape2D
      • boundingBox

        public Box2D boundingBox()
        Description copied from interface: Shape2D
        Returns the bounding box of the shape.
        Specified by:
        boundingBox in interface Shape2D
        Returns:
        the bounding box of the shape.
      • almostEquals

        public boolean almostEquals(GeometricObject2D obj,
                                    double eps)
        Description copied from interface: GeometricObject2D
        Checks if the two objects are similar up to a given threshold value. This method can be used to compare the results of geometric computations, that introduce errors due to numerical computations.
        Specified by:
        almostEquals in interface GeometricObject2D
        Parameters:
        obj - the object to compare
        eps - a threshold value, for example the minimal coordinate difference
        Returns:
        true if both object have the same value up to the threshold
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.