Class Line

java.lang.Object
net.thucydides.core.geometry.Line

public class Line
extends java.lang.Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  Line.LineBuilder  
  • Constructor Summary

    Constructors
    Constructor Description
    Line​(Point origin, Point destination)  
  • Method Summary

    Modifier and Type Method Description
    static Line.LineBuilder from​(Point origin)  
    Point getDestination()  
    Point getOrigin()  
    java.math.BigDecimal getSlope()  
    java.math.BigDecimal getYIntercept()  
    java.util.Optional<Point> intersectionWith​(Line line)  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Line

      public Line​(Point origin, Point destination)
  • Method Details

    • getOrigin

      public Point getOrigin()
    • getDestination

      public Point getDestination()
    • getSlope

      public java.math.BigDecimal getSlope()
    • getYIntercept

      public java.math.BigDecimal getYIntercept()
    • intersectionWith

      public java.util.Optional<Point> intersectionWith​(Line line)
    • from

      public static Line.LineBuilder from​(Point origin)
    • toString

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