Class PolarVector2D

java.lang.Object
  extended by CoordinatePair
      extended by Vector2D
          extended by PolarVector2D
All Implemented Interfaces:
java.lang.Cloneable

public class PolarVector2D
extends Vector2D


Field Summary
 
Fields inherited from class Vector2D
ANGLE, LENGTH, NaN, NORM
 
Fields inherited from class CoordinatePair
x, X, y, Y
 
Constructor Summary
PolarVector2D()
           
PolarVector2D(double r, double phi)
           
PolarVector2D(PolarVector2D template)
           
 
Method Summary
 double angle()
           
 void angle(double value)
           
 Vector2D cartesian()
           
 void invert()
           
 double length()
           
 void math(char op, double b)
           
static Vector2D math(Vector2D a, char op, double b)
           
 double norm()
           
 void normalize()
           
 double r()
           
 void r(double value)
           
 void rotate(double angle)
           
 void scale(double value)
           
 java.lang.String toString()
           
 
Methods inherited from class Vector2D
add, addMultipleOf, difference, distanceTo, dot, dot, getAngle, getValue, inverseOf, math, math, normalized, polar, project, projectOn, reflect, reflectOn, setValue, subtract, sum
 
Methods inherited from class CoordinatePair
clone, copy, createFromDoubles, equals, equals, isNaN, isNull, NaN, parse, set, toString, viewAsDoubles, viewAsDoubles, weightedAverageWith, zero
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PolarVector2D

public PolarVector2D()

PolarVector2D

public PolarVector2D(double r,
                     double phi)

PolarVector2D

public PolarVector2D(PolarVector2D template)
Method Detail

scale

public void scale(double value)
Overrides:
scale in class Vector2D

rotate

public void rotate(double angle)
Overrides:
rotate in class Vector2D

norm

public double norm()
Overrides:
norm in class Vector2D

length

public double length()
Overrides:
length in class Vector2D

angle

public double angle()
Overrides:
angle in class Vector2D

normalize

public void normalize()
               throws java.lang.IllegalStateException
Overrides:
normalize in class Vector2D
Throws:
java.lang.IllegalStateException

invert

public void invert()
Overrides:
invert in class Vector2D

r

public double r()

r

public void r(double value)

angle

public void angle(double value)

cartesian

public Vector2D cartesian()

math

public void math(char op,
                 double b)
          throws java.lang.IllegalArgumentException
Overrides:
math in class Vector2D
Throws:
java.lang.IllegalArgumentException

math

public static Vector2D math(Vector2D a,
                            char op,
                            double b)
                     throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

toString

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