public class Vector4d extends Object implements Vectord, Comparable<Vector4d>, Serializable, Cloneable
| Modifier and Type | Field and Description |
|---|---|
static Vector4d |
ONE |
static Vector4d |
UNIT_W |
static Vector4d |
UNIT_X |
static Vector4d |
UNIT_Y |
static Vector4d |
UNIT_Z |
static Vector4d |
ZERO |
| Constructor and Description |
|---|
Vector4d() |
Vector4d(double x,
double y,
double z,
double w) |
Vector4d(float x,
float y,
float z,
float w) |
Vector4d(Vector2d v) |
Vector4d(Vector2d v,
double z,
double w) |
Vector4d(Vector2d v,
float z,
float w) |
Vector4d(Vector3d v) |
Vector4d(Vector3d v,
double w) |
Vector4d(Vector3d v,
float w) |
Vector4d(Vector4d v) |
Vector4d(VectorNd v) |
| Modifier and Type | Method and Description |
|---|---|
Vector4d |
abs() |
Vector4d |
add(double x,
double y,
double z,
double w) |
Vector4d |
add(float x,
float y,
float z,
float w) |
Vector4d |
add(Vector4d v) |
Vector4d |
ceil() |
Vector4d |
clone() |
int |
compareTo(Vector4d v) |
double |
distance(double x,
double y,
double z,
double w) |
double |
distance(float x,
float y,
float z,
float w) |
double |
distance(Vector4d v) |
double |
distanceSquared(double x,
double y,
double z,
double w) |
double |
distanceSquared(float x,
float y,
float z,
float w) |
double |
distanceSquared(Vector4d v) |
Vector4d |
div(double a) |
Vector4d |
div(double x,
double y,
double z,
double w) |
Vector4d |
div(float a) |
Vector4d |
div(float x,
float y,
float z,
float w) |
Vector4d |
div(Vector4d v) |
double |
dot(double x,
double y,
double z,
double w) |
double |
dot(float x,
float y,
float z,
float w) |
double |
dot(Vector4d v) |
boolean |
equals(Object o) |
Vector4d |
floor() |
static Vector4d |
from(double n) |
static Vector4d |
from(double x,
double y,
double z,
double w) |
int |
getFloorW() |
int |
getFloorX() |
int |
getFloorY() |
int |
getFloorZ() |
int |
getMaxAxis()
Return the axis with the maximum value.
|
int |
getMinAxis()
Return the axis with the minimal value.
|
double |
getW() |
double |
getX() |
double |
getY() |
double |
getZ() |
int |
hashCode() |
double |
length() |
double |
lengthSquared() |
Vector4d |
max(double x,
double y,
double z,
double w) |
Vector4d |
max(float x,
float y,
float z,
float w) |
Vector4d |
max(Vector4d v) |
Vector4d |
min(double x,
double y,
double z,
double w) |
Vector4d |
min(float x,
float y,
float z,
float w) |
Vector4d |
min(Vector4d v) |
Vector4d |
mul(double a) |
Vector4d |
mul(double x,
double y,
double z,
double w) |
Vector4d |
mul(float a) |
Vector4d |
mul(float x,
float y,
float z,
float w) |
Vector4d |
mul(Vector4d v) |
Vector4d |
negate() |
Vector4d |
normalize() |
Vector4d |
pow(double power) |
Vector4d |
pow(float pow) |
Vector4d |
project(double x,
double y,
double z,
double w) |
Vector4d |
project(float x,
float y,
float z,
float w) |
Vector4d |
project(Vector4d v) |
Vector4d |
round() |
Vector4d |
sub(double x,
double y,
double z,
double w) |
Vector4d |
sub(float x,
float y,
float z,
float w) |
Vector4d |
sub(Vector4d v) |
double[] |
toArray() |
Vector4d |
toDouble() |
Vector4f |
toFloat() |
Vector4i |
toInt() |
Vector4l |
toLong() |
String |
toString() |
Vector2d |
toVector2() |
Vector3d |
toVector3() |
VectorNd |
toVectorN() |
public static final Vector4d ZERO
public static final Vector4d UNIT_X
public static final Vector4d UNIT_Y
public static final Vector4d UNIT_Z
public static final Vector4d UNIT_W
public static final Vector4d ONE
public Vector4d()
public Vector4d(Vector2d v)
public Vector4d(Vector2d v, float z, float w)
public Vector4d(Vector2d v, double z, double w)
public Vector4d(Vector3d v)
public Vector4d(Vector3d v, float w)
public Vector4d(Vector3d v, double w)
public Vector4d(Vector4d v)
public Vector4d(VectorNd v)
public Vector4d(float x,
float y,
float z,
float w)
public Vector4d(double x,
double y,
double z,
double w)
public double getX()
public double getY()
public double getZ()
public double getW()
public int getFloorX()
public int getFloorY()
public int getFloorZ()
public int getFloorW()
public Vector4d add(float x, float y, float z, float w)
public Vector4d add(double x, double y, double z, double w)
public Vector4d sub(float x, float y, float z, float w)
public Vector4d sub(double x, double y, double z, double w)
public Vector4d mul(float a)
public Vector4d mul(float x, float y, float z, float w)
public Vector4d mul(double x, double y, double z, double w)
public Vector4d div(float a)
public Vector4d div(float x, float y, float z, float w)
public Vector4d div(double x, double y, double z, double w)
public double dot(Vector4d v)
public double dot(float x,
float y,
float z,
float w)
public double dot(double x,
double y,
double z,
double w)
public Vector4d project(float x, float y, float z, float w)
public Vector4d project(double x, double y, double z, double w)
public Vector4d pow(float pow)
public Vector4d min(float x, float y, float z, float w)
public Vector4d min(double x, double y, double z, double w)
public Vector4d max(float x, float y, float z, float w)
public Vector4d max(double x, double y, double z, double w)
public double distanceSquared(Vector4d v)
public double distanceSquared(float x,
float y,
float z,
float w)
public double distanceSquared(double x,
double y,
double z,
double w)
public double distance(Vector4d v)
public double distance(float x,
float y,
float z,
float w)
public double distance(double x,
double y,
double z,
double w)
public double lengthSquared()
lengthSquared in interface Vectordpublic int getMinAxis()
getMinAxis in interface Vectordint axis with minimal valuepublic int getMaxAxis()
getMaxAxis in interface Vectordint axis with maximum valuepublic Vector2d toVector2()
public Vector3d toVector3()
public VectorNd toVectorN()
public int compareTo(Vector4d v)
compareTo in interface Comparable<Vector4d>public static Vector4d from(double n)
public static Vector4d from(double x, double y, double z, double w)
Copyright © 2013–2016 Flow Powered. All rights reserved.