public class PolarVector2D extends Object implements Serializable
Immutable.
| Modifier and Type | Field and Description |
|---|---|
protected double |
rho |
protected double |
theta |
| Constructor and Description |
|---|
PolarVector2D(double rho,
double theta)
Construct from polar coordinates
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
double |
getRho() |
double |
getTheta() |
static double |
normalizeTheta(double theta)
Normalize theta, the angle coordinate, so that the representation is unique
|
public PolarVector2D(double rho,
double theta)
rho - the distance from origintheta - the counter-clockwise angle with to positive part of the X-axis in radians. Normalized to fit within <0,2*Pi).public double getRho()
public double getTheta()
public static double normalizeTheta(double theta)
theta - the counter-clockwise angle with to positive part of the X-axis in radiansCopyright © 2019 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All rights reserved.