Documentation of 'jhpro.fit.LineUtil' Java class
LineUtil
jhpro.fit

Class LineUtil



  • public class LineUtil
    extends java.lang.Object
    Class LineUtil is 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.Line2D bisector(java.awt.geom.Line2D segment)
      Return the bisector (french: médiatrice) of the provided segment
      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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 A
        p2 - second point of line A
        p3 - first point of line B
        p4 - second point of line B
        Returns:
        the intersection point

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.