org.osm2world.core.math
Modifier and Type | Field and Description |
---|---|
static VectorXYZW |
NULL_VECTOR |
double |
w |
static VectorXYZW |
W_UNIT |
double |
x |
static VectorXYZW |
X_UNIT |
double |
y |
static VectorXYZW |
Y_UNIT |
double |
z |
static VectorXYZW |
Z_UNIT |
Constructor and Description |
---|
VectorXYZW(double x2,
double y2,
double z2,
double w2) |
VectorXYZW(VectorXYZ v,
double w2) |
Modifier and Type | Method and Description |
---|---|
VectorXYZW |
add(double x,
double y,
double z,
double w) |
VectorXYZW |
add(VectorXYZW other) |
double |
distanceTo(VectorXYZW other) |
double |
distanceToSquared(VectorXYZW other) |
boolean |
equals(Object obj) |
double |
getW() |
double |
getX() |
double |
getY() |
double |
getZ() |
int |
hashCode() |
VectorXYZW |
invert() |
double |
length() |
double |
lengthSquared() |
VectorXYZW |
mult(double scalar) |
VectorXYZW |
normalize() |
VectorXYZW |
subtract(VectorXYZW other) |
String |
toString() |
VectorXYZW |
x(double x) |
VectorXYZ |
xyz() |
static VectorXYZW |
xyz(Vector4D vector4D)
creates a VectorXYZ for any Vector4D object.
|
VectorXYZW |
y(double y) |
VectorXYZW |
z(double z) |
public final double x
public final double y
public final double z
public final double w
public static final VectorXYZW NULL_VECTOR
public static final VectorXYZW X_UNIT
public static final VectorXYZW Y_UNIT
public static final VectorXYZW Z_UNIT
public static final VectorXYZW W_UNIT
public VectorXYZW(double x2, double y2, double z2, double w2)
public VectorXYZW(VectorXYZ v, double w2)
public double length()
public double lengthSquared()
public VectorXYZW normalize()
public VectorXYZW add(VectorXYZW other)
public VectorXYZW add(double x, double y, double z, double w)
public VectorXYZW subtract(VectorXYZW other)
public VectorXYZW mult(double scalar)
public String toString()
toString
in class Object
public double distanceTo(VectorXYZW other)
public double distanceToSquared(VectorXYZW other)
public VectorXYZW x(double x)
public VectorXYZW y(double y)
public VectorXYZW z(double z)
public VectorXYZW invert()
public VectorXYZ xyz()
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public static VectorXYZW xyz(Vector4D vector4D)