592 |
* Determines whether a point lies inside the area that is bounded |
* Determines whether a point lies inside the area that is bounded |
593 |
* by the curve and the straight line connecting its end points. |
* by the curve and the straight line connecting its end points. |
594 |
* |
* |
595 |
* <p><img src="QuadCurve2D-5.png" width="350" height="180" |
* <p><img src="doc-files/QuadCurve2D-5.png" width="350" height="180" |
596 |
* alt="A drawing of the area spanned by the curve" /> |
* alt="A drawing of the area spanned by the curve" /> |
597 |
* |
* |
598 |
* <p>The above drawing illustrates in which area points are |
* <p>The above drawing illustrates in which area points are |
599 |
* considered –contained— in a QuadCurve2D. |
* considered “contained” in a QuadCurve2D. |
600 |
*/ |
*/ |
601 |
public boolean contains(double x, double y) |
public boolean contains(double x, double y) |
602 |
{ |
{ |
609 |
* Determines whether a point lies inside the area that is bounded |
* Determines whether a point lies inside the area that is bounded |
610 |
* by the curve and the straight line connecting its end points. |
* by the curve and the straight line connecting its end points. |
611 |
* |
* |
612 |
* <p><img src="QuadCurve2D-5.png" width="350" height="180" |
* <p><img src="doc-files/QuadCurve2D-5.png" width="350" height="180" |
613 |
* alt="A drawing of the area spanned by the curve" /> |
* alt="A drawing of the area spanned by the curve" /> |
614 |
* |
* |
615 |
* <p>The above drawing illustrates in which area points are |
* <p>The above drawing illustrates in which area points are |
616 |
* considered –contained— in a QuadCurve2D. |
* considered “contained” in a QuadCurve2D. |
617 |
*/ |
*/ |
618 |
public boolean contains(Point2D p) |
public boolean contains(Point2D p) |
619 |
{ |
{ |