|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.chemistry.gui.extended.geometry.Angle
public class Angle
A class that provides mathematical definition of geometric angle
| Field Summary | |
|---|---|
protected java.lang.String |
comment
error/warning message, or other comment |
protected double |
value
value of the angle |
| Constructor Summary | |
|---|---|
Angle()
default constructor: value is 0.0; |
|
Angle(Angle angle)
copy constructor |
|
Angle(double value)
constructor |
|
Angle(double value,
boolean inDegree)
full constructor |
|
| Method Summary | |
|---|---|
double |
degreeValue()
Return angle value in degree unit |
java.lang.String |
getComment()
Return comment |
double |
radValue()
Return angle value in rad unit |
void |
setComment(java.lang.String comment)
Set comment |
void |
setValue(double value)
Set value of the angle |
void |
setValue(double value,
boolean inDegree)
Set value of the angle |
java.lang.String |
toString()
Return string representation of angle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected double value
protected java.lang.String comment
| Constructor Detail |
|---|
public Angle()
public Angle(double value,
boolean inDegree)
angle - inDegree - boolean flag indicating value in degree unitpublic Angle(double value)
angle - value in rad unitpublic Angle(Angle angle)
a - the angle to be copied| Method Detail |
|---|
public double radValue()
public double degreeValue()
public java.lang.String getComment()
public java.lang.String toString()
toString in class java.lang.Object
public void setValue(double value,
boolean inDegree)
value - angle's value to be setinDegree - true if value is in degree unit, false if in rad unitpublic void setValue(double value)
value - angle's value to be set, in rad unitpublic void setComment(java.lang.String comment)
comment - getComment
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||