|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuavsim.datatypes.A_Arc<_ANGLETYPE_>
_ANGLETYPE_ - - the type of angle: mathematical or navigationalpublic abstract class A_Arc<_ANGLETYPE_ extends A_Angle<_ANGLETYPE_>>
Defines the shared aspects of an arc formed by two angles.
| Nested Class Summary | |
|---|---|
class |
A_Arc.A_ArcIterator
Defines the shared aspects of an iterator for the arc. |
| Field Summary | |
|---|---|
protected _ANGLETYPE_ |
_angleEnd
the end angle |
protected _ANGLETYPE_ |
_angleStart
the start angle |
| Constructor Summary | |
|---|---|
A_Arc(_ANGLETYPE_ angleStart,
_ANGLETYPE_ angleEnd)
Creates an abstract arc. |
|
| Method Summary | |
|---|---|
_ANGLETYPE_ |
getAngleEnd()
Gets the end angle. |
_ANGLETYPE_ |
getAngleStart()
Gets the start angle. |
abstract double |
getArcLength(boolean isCounterclockwise)
Determines the length of the arc from start to end. |
abstract A_Arc.A_ArcIterator |
getIteratorInstance(_ANGLETYPE_ step,
boolean isCounterclockwise,
boolean isInclusiveRange)
Generates an iterator. |
abstract A_Arc<_ANGLETYPE_> |
getReverse()
Swaps the start and end angles. |
double |
getSubarcLength(boolean isCounterclockwise,
double divisor)
Divides the arc into subarcs and returns their length. |
double |
getSubdivisionCount(_ANGLETYPE_ angle,
boolean isCounterclockwise)
Divides the arc by an angle and returns how many subarcs there are. |
boolean |
isContained(_ANGLETYPE_ angle,
boolean isInclusive)
Returns whether an angle is on the arc interval [start,end) or [start,end]. |
protected boolean |
isStartBeforeEnd()
Determines whether the start angle is smaller than the end angle. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final _ANGLETYPE_ extends A_Angle<_ANGLETYPE_> _angleEnd
protected final _ANGLETYPE_ extends A_Angle<_ANGLETYPE_> _angleStart
| Constructor Detail |
|---|
public A_Arc(_ANGLETYPE_ angleStart,
_ANGLETYPE_ angleEnd)
angleStart - - the start angleangleEnd - - the end angle| Method Detail |
|---|
public _ANGLETYPE_ getAngleEnd()
public _ANGLETYPE_ getAngleStart()
public abstract double getArcLength(boolean isCounterclockwise)
isCounterclockwise - - whether to follow the arc counterclockwise
public abstract A_Arc.A_ArcIterator getIteratorInstance(_ANGLETYPE_ step,
boolean isCounterclockwise,
boolean isInclusiveRange)
step - - the stepisCounterclockwise - - whether to follow the arc counterclockwiseisInclusiveRange - - whether to include the end angle in the steps
public abstract A_Arc<_ANGLETYPE_> getReverse()
public double getSubarcLength(boolean isCounterclockwise,
double divisor)
divisor - - the divisorisCounterclockwise - - whether to follow the arc counterclockwise
public double getSubdivisionCount(_ANGLETYPE_ angle,
boolean isCounterclockwise)
angle - - the angleisCounterclockwise - - whether to follow the arc counterclockwise
public boolean isContained(_ANGLETYPE_ angle,
boolean isInclusive)
angle - - the angleisInclusive - - whether to include the end angle
protected boolean isStartBeforeEnd()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||