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