public class PirolEdge
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected PirolPoint |
anfang |
protected boolean |
anfangUnbegrenzt |
protected PirolPoint |
ende |
protected boolean |
endeUnbegrenzt |
protected boolean |
gueltig |
protected static double |
infinityFaktor |
static PirolEdge |
KANTE_X0Y0ToX0Y1 |
static PirolEdge |
KANTE_X0Y0ToX1Y0 |
protected int |
punktIndexA |
protected int |
punktIndexB |
Constructor and Description |
---|
PirolEdge(PirolPoint anfang,
double steigung,
double laenge) |
PirolEdge(PirolPoint anfang,
PirolPoint ende) |
PirolEdge(PirolPoint anfang,
PirolPoint ende,
boolean anfangUnbegrenzt,
boolean endeUnbegrenzt) |
Modifier and Type | Method and Description |
---|---|
double |
getABFaktorZumNormalenFaktor(PirolPoint pkt) |
PirolPoint |
getAnfang() |
PirolPoint |
getEnde() |
double |
getLaenge() |
double |
getNormalenFaktorZu(PirolPoint pkt) |
PirolEdge |
getNormalenKante(double laenge) |
int |
getPunktIndexA() |
int |
getPunktIndexB() |
PirolPoint |
getSchnittpunkt(PirolEdge k2) |
static PirolPoint |
getSchnittpunkt(PirolEdge k1,
PirolEdge k2) |
double |
getSteigung() |
boolean |
isAnfangUnbegrenzt() |
boolean |
isEndeUnbegrenzt() |
boolean |
isGueltig() |
boolean |
isParallelZu(PirolEdge k) |
boolean |
isParallelZu(PirolEdge k,
double infinityFactor) |
static PirolEdge |
kreiereKanteDurchPunktInnerhalbBegrenzung(PirolPoint p,
double steigung,
com.vividsolutions.jts.geom.Envelope begrenzung) |
void |
setAnfang(PirolPoint anfang) |
void |
setAnfangUnbegrenzt(boolean anfangUnbegrenzt) |
void |
setEnde(PirolPoint ende) |
void |
setEndeUnbegrenzt(boolean endeUnbegrenzt) |
void |
setGueltig(boolean gueltig) |
void |
setPunktIndexA(int punktIndexA) |
void |
setPunktIndexB(int punktIndexB) |
static PirolEdge |
shiftLine(PirolEdge lineToShift,
PirolPoint shiftingVector)
creates a new
PirolEdge object, that has a length
equal to lineToShift 's length and is parallel to
lineToShift . |
void |
switchPoints()
switch starting and end point of
this PirolEdge instance. |
java.lang.String |
toString() |
int |
vorzeichenDesNormalenFaktors(PirolPoint pkt) |
public static PirolEdge KANTE_X0Y0ToX0Y1
public static PirolEdge KANTE_X0Y0ToX1Y0
protected PirolPoint anfang
protected PirolPoint ende
protected int punktIndexA
protected int punktIndexB
protected boolean anfangUnbegrenzt
protected boolean endeUnbegrenzt
protected boolean gueltig
protected static double infinityFaktor
public PirolEdge(PirolPoint anfang, PirolPoint ende, boolean anfangUnbegrenzt, boolean endeUnbegrenzt)
public PirolEdge(PirolPoint anfang, PirolPoint ende)
public PirolEdge(PirolPoint anfang, double steigung, double laenge)
public static final PirolEdge shiftLine(PirolEdge lineToShift, PirolPoint shiftingVector) throws java.lang.Exception
PirolEdge
object, that has a length
equal to lineToShift
's length and is parallel to
lineToShift
.lineToShift
- the line to be shiftedshiftingVector
- x,y,z component for the shifting (will be added to lineToShift
's starting and end point).PirolEdge
objectjava.lang.Exception
public void switchPoints()
this
PirolEdge
instance.public static PirolEdge kreiereKanteDurchPunktInnerhalbBegrenzung(PirolPoint p, double steigung, com.vividsolutions.jts.geom.Envelope begrenzung) throws java.lang.Exception
java.lang.Exception
public boolean isParallelZu(PirolEdge k) throws java.lang.Exception
java.lang.Exception
public boolean isParallelZu(PirolEdge k, double infinityFactor) throws java.lang.Exception
java.lang.Exception
public double getSteigung() throws java.lang.Exception
java.lang.Exception
public static PirolPoint getSchnittpunkt(PirolEdge k1, PirolEdge k2) throws java.lang.Exception
java.lang.Exception
public PirolPoint getSchnittpunkt(PirolEdge k2) throws java.lang.Exception
java.lang.Exception
public int vorzeichenDesNormalenFaktors(PirolPoint pkt) throws java.lang.Exception
java.lang.Exception
public double getABFaktorZumNormalenFaktor(PirolPoint pkt) throws java.lang.Exception
java.lang.Exception
public double getNormalenFaktorZu(PirolPoint pkt) throws java.lang.Exception
java.lang.Exception
public PirolEdge getNormalenKante(double laenge) throws java.lang.Exception
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object
public double getLaenge() throws java.lang.Exception
java.lang.Exception
public PirolPoint getAnfang()
public void setAnfang(PirolPoint anfang)
public boolean isAnfangUnbegrenzt()
public void setAnfangUnbegrenzt(boolean anfangUnbegrenzt)
public PirolPoint getEnde()
public void setEnde(PirolPoint ende)
public boolean isEndeUnbegrenzt()
public void setEndeUnbegrenzt(boolean endeUnbegrenzt)
public boolean isGueltig()
public void setGueltig(boolean gueltig)
public int getPunktIndexA()
public void setPunktIndexA(int punktIndexA)
public int getPunktIndexB()
public void setPunktIndexB(int punktIndexB)