net.thucydides.core.geometry
Class Line

Package class diagram package Line
java.lang.Object
  extended by net.thucydides.core.geometry.Line

public class Line
extends Object


Nested Class Summary
static class Line.LineBuilder
           
 
Constructor Summary
Line(Point origin, Point destination)
           
 
Method Summary
static Line.LineBuilder from(Point origin)
           
 Point getDestination()
           
 Point getOrigin()
           
 BigDecimal getSlope()
           
 BigDecimal getYIntercept()
           
 com.google.common.base.Optional<Point> intersectionWith(Line line)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Line

public Line(Point origin,
            Point destination)
Method Detail

getOrigin

public Point getOrigin()

getDestination

public Point getDestination()

getSlope

public BigDecimal getSlope()

getYIntercept

public BigDecimal getYIntercept()

intersectionWith

public com.google.common.base.Optional<Point> intersectionWith(Line line)

from

public static Line.LineBuilder from(Point origin)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.