jhpro.fit
Class LineUtil
- java.lang.Object
-
- jhpro.fit.LineUtil
-
public class LineUtil extends java.lang.ObjectClassLineUtilis a collection of utilities related to lines.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static java.awt.geom.Line2Dbisector(java.awt.geom.Line2D segment)Return the bisector (french: médiatrice) of the provided segmentstatic java.awt.geom.Point2D.Doubleintersection(java.awt.geom.Point2D p1, java.awt.geom.Point2D p2, java.awt.geom.Point2D p3, java.awt.geom.Point2D p4)Return the intersection point between infinite line A defined by points p1 & p2 and infinite line B defined by points p3 & p4.
-
-
-
Method Detail
-
bisector
public static java.awt.geom.Line2D bisector(java.awt.geom.Line2D segment)
Return the bisector (french: médiatrice) of the provided segment- Parameters:
segment- the provided segment- Returns:
- (a segment on) the bisector
-
intersection
public static java.awt.geom.Point2D.Double intersection(java.awt.geom.Point2D p1, java.awt.geom.Point2D p2, java.awt.geom.Point2D p3, java.awt.geom.Point2D p4)Return the intersection point between infinite line A defined by points p1 & p2 and infinite line B defined by points p3 & p4.- Parameters:
p1- first point of line Ap2- second point of line Ap3- first point of line Bp4- second point of line B- Returns:
- the intersection point
-
-
DMelt 3.0 © DataMelt by jWork.ORG