|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.cnes.sirius.patrius.utils.AbstractInterval fr.cnes.sirius.patrius.utils.AngleInterval
public final class AngleInterval
- This class describes an angle interval.
- It contains no method other than getters and setters : the operations on angles are available in the AngleTools class
See DV-MATHS_50.
There are two ways of building an angle interval : with the two end points, or with a reference angle and the interval length.
AngleInterval angleInterval = new AngleInterval(lowerType, lowerAngle, upperAngle, upperType);
AngleInterval angleInterval = new AngleInterval(reference, length, lowerType, upperType);
Constructor Summary | |
---|---|
AngleInterval(double referenceIn,
double lengthIn,
IntervalEndpointType lowerEndPointIn,
IntervalEndpointType upperEndPointIn)
Constructor Needs the reference angle and the interval length. |
|
AngleInterval(IntervalEndpointType lowerEndPointIn,
double lowerAngleIn,
double upperAngleIn,
IntervalEndpointType upperEndPointIn)
Constructor Needs the two end points values. |
Method Summary | |
---|---|
double |
getLength()
|
double |
getLowerAngle()
|
double |
getReference()
|
double |
getUpperAngle()
|
String |
toString()
This method returns a String representing the interval, with boundaries as brackets and the lower/upper values. Example : "] 0.0 rad , 1.2534 rad [" for an open interval. Warning : this representation is subject to change. |
Methods inherited from class fr.cnes.sirius.patrius.utils.AbstractInterval |
---|
getLowerEndPoint, getUpperEndPoint, setLowerEndPoint, setUpperEndPoint |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AngleInterval(IntervalEndpointType lowerEndPointIn, double lowerAngleIn, double upperAngleIn, IntervalEndpointType upperEndPointIn)
lowerEndPointIn
- lower end point type of the intervallowerAngleIn
- lower angle of the intervalupperAngleIn
- upper angle of the intervalupperEndPointIn
- upper end point type of the interval
MathIllegalArgumentException
- if the interval is invalidpublic AngleInterval(double referenceIn, double lengthIn, IntervalEndpointType lowerEndPointIn, IntervalEndpointType upperEndPointIn)
referenceIn
- reference angle of the intervallengthIn
- length of the intervallowerEndPointIn
- lower end point type of the intervalupperEndPointIn
- upper end point type of the interval
MathIllegalArgumentException
- if the interval is invalidMethod Detail |
---|
public String toString()
toString
in class Object
Object.toString()
public double getLowerAngle()
public double getUpperAngle()
public double getReference()
public double getLength()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |