Package org.graffiti.util
Class GraphicHelper
java.lang.Object
org.graffiti.util.GraphicHelper
- All Implemented Interfaces:
HelperClass
public class GraphicHelper extends Object implements HelperClass
-
Constructor Summary
Constructors Constructor Description GraphicHelper()
-
Method Summary
Modifier and Type Method Description static Point2D
getIntersection(Line2D line1, Line2D line2)
Returns the point where both lines intersect.
-
Constructor Details
-
GraphicHelper
public GraphicHelper()
-
-
Method Details
-
getIntersection
Returns the point where both lines intersect.- Parameters:
line1
- line to compute the intersection with l2line2
- line to compute the intersection with l1- Returns:
- the intersection point of the given lines.
-