public final class AngleInterval extends AbstractInterval implements Serializable
- 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 and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
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.
|
getLowerEndPoint, getUpperEndPoint, setLowerEndPoint, setUpperEndPoint
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 intervalMathIllegalArgumentException
- 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 intervalMathIllegalArgumentException
- if the interval is invalidpublic String toString()
toString
in class Object
Object.toString()
public double getLowerAngle()
public double getUpperAngle()
public double getReference()
public double getLength()
Copyright © 2019 CNES. All rights reserved.