|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmako5.math.Polar
public final class Polar
Represents a set of polar coordinates. Can be used to represent velocity and other things as well.
Constructor Summary | |
---|---|
Polar()
Another polar constructor. |
|
Polar(float fRadius_,
float fTheta_)
Creates a new polar set |
Method Summary | |
---|---|
void |
addRadius(float v)
Adds to the radius of this polar value. |
void |
addTheta(float f)
Adds to the theta value. |
Object |
clone()
Clones this polar value. |
float |
getRadius()
Returns the radius |
Angle |
getTheta()
Returns the angle of this |
float |
getX()
Returns the x-coordinate value of this. |
float |
getY()
Returns the y-coordinate of this. |
void |
setRadius(float f)
Sets the radius of the polar value. |
void |
setTheta(float f)
Sets the theta value. |
R2v |
toVector()
Converts this to a vector |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Polar(float fRadius_, float fTheta_)
public Polar()
Method Detail |
---|
public Object clone()
clone
in class Object
public float getRadius()
public Angle getTheta()
public void setRadius(float f)
public void setTheta(float f)
f
- the new theta value in radianspublic void addTheta(float f)
f
- the amount to add in radianspublic void addRadius(float v)
v
- the amount to addpublic float getX()
public float getY()
public R2v toVector()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |