jumbo.euclid
Class Polar

java.lang.Object
  |
  +--jumbo.euclid.Polar

public class Polar
extends java.lang.Object

Polar - Polar coordinates (r, theta)


Constructor Summary
Polar()
           
Polar(Complex c)
           
Polar(double a, Angle b)
           
Polar(Polar a)
           
 
Method Summary
 Polar divideBy(Polar f)
          divide a polar by a polar
 boolean equals(Polar a)
          are two polar equal?
 double getR()
          gets radial part
 Angle getTheta()
          gets angular part
 double getX()
          get X, Y and XY coords
 Real2 getXY()
           
 double getY()
           
 Polar multiplyBy(double f)
          multiply a polar by a scalar
 Polar multiplyBy(Polar f)
          multiply a polar by a polar
 Polar plus(Polar a2)
          add two polars
 void subtract()
          unary minus
 Polar subtract(Polar a2)
          subtract two polars
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Polar

public Polar()

Polar

public Polar(double a,
             Angle b)

Polar

public Polar(Complex c)

Polar

public Polar(Polar a)
Method Detail

getR

public double getR()
gets radial part

getTheta

public Angle getTheta()
gets angular part

plus

public Polar plus(Polar a2)
add two polars

subtract

public Polar subtract(Polar a2)
subtract two polars

subtract

public void subtract()
unary minus

multiplyBy

public Polar multiplyBy(Polar f)
multiply a polar by a polar

multiplyBy

public Polar multiplyBy(double f)
multiply a polar by a scalar

divideBy

public Polar divideBy(Polar f)
               throws java.lang.ArithmeticException
divide a polar by a polar

equals

public boolean equals(Polar a)
are two polar equal?

getX

public double getX()
get X, Y and XY coords

getY

public double getY()

getXY

public Real2 getXY()

toString

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