|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.geom.AffineLine
public class AffineLine
This class represents a line in the 2D-dimensional affine space. The line is defined by the equation ax + by + c = 0
Constructor Summary | |
---|---|
AffineLine(YPoint p1,
YPoint p2)
Creates an affine line which is defined by two points. |
|
AffineLine(YPoint p1,
YVector v)
Creates an affine line which is defined by a point and a vector. |
Method Summary | |
---|---|
double |
getA()
Returns a from ax+by+c = 0 |
double |
getB()
Returns b from ax+by+c = 0 |
double |
getC()
Returns c from ax+by+c = 0 |
static YPoint |
getCrossing(AffineLine l1,
AffineLine l2)
Returns the crossing of two lines. |
YPoint |
getXProjection(YPoint p)
Projects an point on the line in direction of the X-axis. |
YPoint |
getYProjection(YPoint p)
Projects an point on the line in direction of the Y-axis. |
java.lang.String |
toString()
Returns the equation of the line as String |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AffineLine(YPoint p1, YVector v)
public AffineLine(YPoint p1, YPoint p2)
Method Detail |
---|
public double getA()
public double getB()
public double getC()
public java.lang.String toString()
toString
in class java.lang.Object
public YPoint getXProjection(YPoint p)
public YPoint getYProjection(YPoint p)
public static YPoint getCrossing(AffineLine l1, AffineLine l2)
null
is returned.
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |