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
-
Polar()
-
-
Polar(Complex)
-
-
Polar(double, Angle)
-
-
Polar(Polar)
-
-
divideBy(Polar)
- divide a polar by a polar
-
equals(Polar)
- are two polar equal?
-
getR()
- gets radial part
-
getTheta()
- gets angular part
-
getX()
- get X, Y and XY coords
-
getXY()
-
-
getY()
-
-
multiplyBy(double)
- multiply a polar by a scalar
-
multiplyBy(Polar)
- multiply a polar by a polar
-
plus(Polar)
- add two polars
-
subtract()
- unary minus
-
subtract(Polar)
- subtract two polars
-
toString()
-
Polar
public Polar()
Polar
public Polar(double a,
Angle b)
Polar
public Polar(Complex c)
Polar
public Polar(Polar a)
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 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 String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index