Class pmr.euclid.Polar
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pmr.euclid.Polar

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

public class Polar
extends Object

Polar - Polar coordinates (r, theta)

Author:
(C) P. Murray-Rust, 1996

Constructor Index

 o Polar()
 o Polar(Complex)
 o Polar(double, Angle)
 o Polar(Polar)

Method Index

 o divideBy(Polar)
divide a polar by a polar
 o equals(Polar)
are two polar equal?
 o getR()
gets radial part
 o getTheta()
gets angular part
 o getX()
get X, Y and XY coords
 o getXY()
 o getY()
 o multiplyBy(double)
multiply a polar by a scalar
 o multiplyBy(Polar)
multiply a polar by a polar
 o plus(Polar)
add two polars
 o subtract()
unary minus
 o subtract(Polar)
subtract two polars
 o toString()

Constructors

 o Polar
  public Polar()
 o Polar
  public Polar(double a,
               Angle b)
 o Polar
  public Polar(Complex c)
 o Polar
  public Polar(Polar a)

Methods

 o getR
  public double getR()
gets radial part
 o getTheta
  public Angle getTheta()
gets angular part
 o plus
  public Polar plus(Polar a2)
add two polars
 o subtract
  public Polar subtract(Polar a2)
subtract two polars
 o subtract
  public void subtract()
unary minus
 o multiplyBy
  public Polar multiplyBy(Polar f)
multiply a polar by a polar
 o multiplyBy
  public Polar multiplyBy(double f)
multiply a polar by a scalar
 o divideBy
  public Polar divideBy(Polar f) throws ArithmeticException
divide a polar by a polar
 o equals
  public boolean equals(Polar a)
are two polar equal?
 o getX
  public double getX()
get X, Y and XY coords
 o getY
  public double getY()
 o getXY
  public Real2 getXY()
 o toString
  public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index