Class PolarVector2D
java.lang.Object
CoordinatePair
Vector2D
PolarVector2D
- All Implemented Interfaces:
- java.lang.Cloneable
public class PolarVector2D
- extends Vector2D
| 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 |
PolarVector2D
public PolarVector2D()
PolarVector2D
public PolarVector2D(double r,
double phi)
PolarVector2D
public PolarVector2D(PolarVector2D template)
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