com.ctreber.acearth.util.EdgeCrossing Maven / Gradle / Ivy
Show all versions of plantuml Show documentation
package com.ctreber.acearth.util;
/**
* Holds information about a line crossing "the edge of Earth".
*
*
© 2002 Christian Treber, [email protected]
* @author Christian Treber, [email protected]
*
*/
public class EdgeCrossing
{
public static final int XingTypeEntry = 0;
public static final int XingTypeExit = 1;
private int fType;
private int fIndex;
private double fX;
private double fY;
private double fAngle;
public EdgeCrossing(int pType, int pIndex, double pX, double pY, double pAngle)
{
fType = pType;
fX = pX;
fY = pY;
fAngle = pAngle;
fIndex = pIndex;
}
public String toString()
{
return fType + ": " + fX + ", " + fY + ", " + fAngle + " (" + fIndex + ")";
}
public int getType()
{
return fType;
}
public double getX()
{
return fX;
}
public double getY()
{
return fY;
}
public double getAngle()
{
return fAngle;
}
public int getIndex()
{
return fIndex;
}
}