|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--net.agmodel.physical.AbstractQuantity
|
+--net.agmodel.physical.Angle
This class represents the figure formed by two lines diverging from a common point.
| Field Summary |
| Fields inherited from class net.agmodel.physical.AbstractQuantity |
AMOUNT_OF_SUBSTANCE, COMPLETE, derivation, DEVOID, DIMENSIONLESS, ELECTRIC_CURRENT, LENGTH, LUMINOUS_INTENSITY, MASS, SPATIALLYINTERPOLATED, TEMPORALLYINTERPOLATED, THERMODYNAMIC_TEMPERATURE, TIME, UNINTERPOLATED |
| Constructor Summary | |
Angle(double value,
AngleUnit unit)
Angle constructor. |
|
| Method Summary | |
static Angle |
acos(double x)
Creates an Angle such as its cosine is the specified argument. |
Angle |
add(Angle x)
Returns an Angle whose value is (this + x). |
static Angle |
asin(double x)
Creates an Angle such as its sine is the specified argument. |
static Angle |
atan(double x)
Creates an Angle such as its tangent is the specified argument. |
static Angle |
atan2(Length y,
Length x)
Converts rectangular coordinates ( x, y)
to polar (rho, theta).
|
int |
compareTo(Angle x)
Compares this Angle with the specified Angle. |
int |
compareTo(Object o)
Compares this Angle with the specified Object. |
double |
cos()
Returns the trigonometric cosine of this Angle. |
Angle |
divide(double coefficient)
Returns an Angle whose value is (this / coefficient). |
protected int |
getDimensionSI()
Gets the SI dimension of this Angle. |
int |
getDMSDegrees()
Returns the degree component of the angle expressed in degrees, minutes and seconds |
int |
getDMSMinutes()
Returns the minute component of the angle expressed in degrees, minutes and seconds |
double |
getDMSSeconds()
Returns the minute component of the angle expressed in degrees, minutes and seconds |
double |
getValue(AngleUnit unit)
Gets the angle in the specified unit. |
protected double |
getValueSI()
Gets the angle in radians. |
Angle |
multiply(double coefficient)
Returns an Angle whose value is (this * coefficient). |
void |
normalize()
Adds or removes a discrete number of revolution to this Angle. |
void |
setValue(double value,
AngleUnit unit)
Sets this Angle using the specified unit. |
double |
sin()
Returns the trigonometric sine of this Angle. |
Angle |
substract(Angle x)
Returns an Angle whose value is (this - x). |
double |
tan()
Returns the trigonometric tangent of this Angle. |
| Methods inherited from class net.agmodel.physical.AbstractQuantity |
clone, divide, getSymbolSI, isSpatiallyInterpolated, isTemporallyInterpolated, multiply, toComposite, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Angle(double value,
AngleUnit unit)
value - the angle in the specified unit.unit - the measurement unit being used.
ArrayArrayIndexOutOfBoundsException - unknown measurement unit| Method Detail |
public double getValue(AngleUnit unit)
unit - the measurement unit being used.
ArrayIndexOutOfBoundsException - unknown measurement unit
public void setValue(double value,
AngleUnit unit)
value - the new angle in the specified unit.unit - the measurement unit being used.
ArrayIndexOutOfBoundsException - unknown measurement unitpublic int getDMSDegrees()
to express the entire angle in degreespublic int getDMSMinutes()
to express the entire angle in minutespublic double getDMSSeconds()
to express the entire angle in minutespublic Angle add(Angle x)
x - the Angle to be added.
public Angle substract(Angle x)
x - the Angle to be substracted.
public Angle multiply(double coefficient)
coefficient - the dimensionless multiplier.
public Angle divide(double coefficient)
coefficient - the dimensionless divisor.
ArithmeticException - coefficient == 0.0public double sin()
public double cos()
public double tan()
public static Angle asin(double x)
x - sine value.
public static Angle acos(double x)
x - cosine value.
public static Angle atan(double x)
x - tangent value.
public static Angle atan2(Length y,
Length x)
x, y)
to polar (rho, theta).
This method computes the phase theta by computing an arc tangent
of y/x whose getValue(RADIAN) is in the range of
-pi to pi.
y - y coordinate value.x - x coordinate value.
Length.magnitude(Length, Length)public void normalize()
public int compareTo(Angle x)
x - Angle to which this Angle is to be compared.
public int compareTo(Object o)
compareTo in interface Comparableo - Object to which this Angle is to be compared.
ClassCastException - o is not a Angle.compareTo(Angle),
Comparableprotected double getValueSI()
getValueSI in class AbstractQuantityprotected int getDimensionSI()
getDimensionSI in class AbstractQuantity
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||