|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jasi.sim.basic.value.AbstractSimValueType jasi.sim.basic.value.AbstractComparableObject<T> jasi.sim.geo.ComparableGeoObject<Arc> jasi.sim.geo.spherical.Arc
public class Arc
Arc length.
Field Summary | |
---|---|
static Arc |
CIRCLE
Arc length of a full circle. |
static Arc |
HALF_CIRCLE
Arc length of a half circle. |
static Arc |
RECTANGLE
Arc length of a half circle. |
static Arc |
ZERO
Arc length of zero. |
Fields inherited from interface jasi.sim.geo.Geometric |
---|
BEGIN, END, MIDLE |
Constructor Summary | |
---|---|
Arc(Arc a)
Constructor of an arc. |
|
Arc(double arc)
Constructor of an arc. |
|
Arc(java.lang.String s)
Constructor of an arc. |
Method Summary | |
---|---|
static Arc |
acos(double x)
Construct an arc by the arc cosine of an angle, in the range of 0.0 through pi. |
Arc |
add(Arc a)
Add that arc length to this arc length. |
double |
amount(Arc a)
Retrieve the amount of this arc length in units of that arc length. |
static Arc |
asin(double x)
Construct an arc by the arc sine of an angle, in the range of -pi/2 through pi/2. |
int |
compareTo(Arc a)
Compares this object with the specified object for order. |
protected double |
convert(java.lang.String s)
Convert that string to an arc value. |
double |
cos()
Returns the trigonometric cosine. |
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one. |
protected double |
fit(double arc)
Fit that arc length to the interval of a circle. |
int |
hashCode()
Returns a hash code value for the object. |
double |
length()
Get the length of this arc. |
Arc |
minus(Arc a)
Subtract that arc length from this arc length. |
double |
sin()
Returns the trigonometric sine. |
Arc |
times(double f)
Multiply this arc length by a factor. |
static java.lang.String |
toDegree(Arc a)
Converts an arc length into degrees, minutes and seconds. |
static Arc |
toRadians(double degrees)
Converts degrees as double into an arc. |
static Arc |
toRadians(java.lang.String degrees)
Converts degrees as string into an arc. |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class jasi.sim.basic.value.AbstractComparableObject |
---|
isEQ, isGE, isGT, isLE, isLT, isNE |
Methods inherited from class jasi.sim.basic.value.AbstractSimValueType |
---|
getContent |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jasi.sim.basic.value.SimValue |
---|
getContent |
Field Detail |
---|
public static final Arc ZERO
public static final Arc HALF_CIRCLE
public static final Arc RECTANGLE
public static final Arc CIRCLE
Constructor Detail |
---|
public Arc(double arc)
arc
- The arc length.public Arc(Arc a)
a
- An arc .public Arc(java.lang.String s)
s
- The string representation of an arc length.Method Detail |
---|
public static Arc acos(double x)
x
- The value whose arc cosine is to be returned.
public static Arc asin(double x)
x
- The value whose arc sine is to be returned.
public static Arc toRadians(double degrees)
degrees
- The degrees to be converted.
public static Arc toRadians(java.lang.String degrees)
degrees
- The degrees to be converted.
public static java.lang.String toDegree(Arc a)
a
- The arc length to be converted.
protected double fit(double arc)
arc
- That arc length.
protected double convert(java.lang.String s)
s
- The string representing an arc.
public final double length()
public final Arc add(Arc a)
a
- That arc length.
public final Arc minus(Arc a)
a
- That arc length.
public final Arc times(double f)
f
- The multiplication factor.
public final double amount(Arc a)
a
- That arc length.
public final double sin()
public final double cos()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- That object which is compared with this object.
public final int compareTo(Arc a)
compareTo
in interface java.lang.Comparable<Arc>
compareTo
in class AbstractComparableObject<Arc>
a
- The arc to be compared.
Comparable.compareTo(Object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |