sebastianmeier
Class PolarPoint

java.lang.Object
  extended by sebastianmeier.PolarPoint

public class PolarPoint
extends java.lang.Object


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

PolarPoint

public PolarPoint()

PolarPoint

public PolarPoint(float theta,
                  float radius)
Method Detail

getTheta

public float getTheta()

getRadius

public float getRadius()

setTheta

public void setTheta(float theta)

setRadius

public void setRadius(float radius)

polarToCartesian

public static float[] polarToCartesian(PolarPoint polar)
Returns the result of converting polar to Cartesian coordinates.


polarToCartesian

public static float[] polarToCartesian(int theta,
                                       int radius)
Returns the result of converting (theta, radius) to Cartesian coordinates.


polarToCartesian

public static float[] polarToCartesian(float theta,
                                       float radius)

cartesianToPolar

public static PolarPoint cartesianToPolar(int x,
                                          int y)
Returns the result of converting point to polar coordinates.


cartesianToPolar

public static PolarPoint cartesianToPolar(float x,
                                          float y)
Returns the result of converting (x, y) to polar coordinates.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setLocation

public void setLocation(PolarPoint p)


processing library PolarPoint by Your Name. (c) 2010