|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcynosurex.math.Angle
public class Angle
| Field Summary | |
|---|---|
protected double |
angle
Internal storage of the Angle in degrees. |
static int |
DEGREE
|
static int |
RADIAN
|
| Fields inherited from interface cynosurex.internal.CommonInterface |
|---|
copyright, copyrightYears, notice, program, version |
| Fields inherited from interface cynosurex.internal.AuthorCommon |
|---|
author, copyrightSymbol, noticeMsg, rights |
| Fields inherited from interface cynosurex.internal.CompanyCommon |
|---|
company, email, website |
| Constructor Summary | |
|---|---|
Angle()
Constructor to create an angle of 0 degrees. |
|
Angle(double angle,
int mode)
Constructor to create an angle. |
|
| Method Summary | |
|---|---|
static double |
degreeToRadian(double degree)
Degree to radian conversion. |
double |
getDegree()
Returns the angle in degree. |
double |
getRadian()
Returns the angle in radian. |
static double |
radianToDegree(double radian)
Radian to degree conversion. |
void |
setDegree(double degree)
Set the angle in degree. |
void |
setRadian(double radian)
Set the angle in radian. |
java.lang.String |
toString()
This method overrides the super class method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int DEGREE
public static final int RADIAN
protected double angle
| Constructor Detail |
|---|
public Angle()
public Angle(double angle,
int mode)
throws ModeNotDefinedException
angle - angle specified in modemode - either degree or radian or other defined modes
ModeNotDefinedException| Method Detail |
|---|
public double getDegree()
public void setDegree(double degree)
degree - angle specified in degreespublic double getRadian()
public void setRadian(double radian)
radian - angle specified in radianspublic static double degreeToRadian(double degree)
degree - angle specified in degreespublic static double radianToDegree(double radian)
radian - angle specified in radianspublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||