|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsebastianmeier.PolarPoint
public class PolarPoint
Constructor Summary | |
---|---|
PolarPoint()
|
|
PolarPoint(float theta,
float radius)
|
Method Summary | |
---|---|
static PolarPoint |
cartesianToPolar(float x,
float y)
Returns the result of converting (x, y) to polar coordinates. |
static PolarPoint |
cartesianToPolar(int x,
int y)
Returns the result of converting point to polar coordinates. |
float |
getRadius()
|
float |
getTheta()
|
static float[] |
polarToCartesian(float theta,
float radius)
|
static float[] |
polarToCartesian(int theta,
int radius)
Returns the result of converting (theta, radius) to Cartesian coordinates. |
static float[] |
polarToCartesian(PolarPoint polar)
Returns the result of converting polar to Cartesian coordinates. |
void |
setLocation(PolarPoint p)
|
void |
setRadius(float radius)
|
void |
setTheta(float theta)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PolarPoint()
public PolarPoint(float theta, float radius)
Method Detail |
---|
public float getTheta()
public float getRadius()
public void setTheta(float theta)
public void setRadius(float radius)
public static float[] polarToCartesian(PolarPoint polar)
polar
to Cartesian coordinates.
public static float[] polarToCartesian(int theta, int radius)
(theta, radius)
to Cartesian coordinates.
public static float[] polarToCartesian(float theta, float radius)
public static PolarPoint cartesianToPolar(int x, int y)
point
to polar coordinates.
public static PolarPoint cartesianToPolar(float x, float y)
(x, y)
to polar coordinates.
public java.lang.String toString()
toString
in class java.lang.Object
public void setLocation(PolarPoint p)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |