| Package | Description |
|---|---|
| com.flowpowered.math | |
| com.flowpowered.math.imaginary | |
| com.flowpowered.math.matrix | |
| com.flowpowered.math.vector |
| Modifier and Type | Method and Description |
|---|---|
static Vector3f |
GenericMath.lerp(Vector3f a,
Vector3f b,
float percent)
Calculates the linear interpolation between a and b with the given percent
|
static Vector3f |
GenericMath.normalizeSafe(Vector3f v)
Attempts to normalize a vector.
|
| Modifier and Type | Method and Description |
|---|---|
static Vector3f |
GenericMath.lerp(Vector3f a,
Vector3f b,
float percent)
Calculates the linear interpolation between a and b with the given percent
|
static Vector3f |
GenericMath.normalizeSafe(Vector3f v)
Attempts to normalize a vector.
|
| Modifier and Type | Method and Description |
|---|---|
Vector3f |
Quaternionf.getAxesAnglesDeg()
Returns the angles in degrees around the x, y and z axes that correspond to the rotation represented by this quaternion.
|
Vector3f |
Quaternionf.getAxesAnglesRad()
Returns the angles in radians around the x, y and z axes that correspond to the rotation represented by this quaternion.
|
Vector3f |
Quaternionf.getAxis()
Returns the axis of rotation for this quaternion.
|
Vector3f |
Quaternionf.getDirection()
Returns a unit vector representing the direction of this quaternion, which is
FORWARD rotated by this quaternion. |
Vector3f |
Quaternionf.rotate(double x,
double y,
double z)
Rotates the double components of a vector by this quaternion.
|
Vector3f |
Quaternionf.rotate(float x,
float y,
float z)
Rotates the float components of a vector by this quaternion.
|
Vector3f |
Quaternionf.rotate(Vector3f v)
Rotates a vector by this quaternion.
|
| Modifier and Type | Method and Description |
|---|---|
static Quaternionf |
Quaternionf.fromAngleDegAxis(double angle,
Vector3f axis)
Creates a new quaternion from the rotation double angle in degrees around the axis vector.
|
static Quaternionf |
Quaternionf.fromAngleDegAxis(float angle,
Vector3f axis)
Creates a new quaternion from the rotation float angle in degrees around the axis vector.
|
static Quaternionf |
Quaternionf.fromAngleRadAxis(double angle,
Vector3f axis)
Creates a new quaternion from the rotation double angle in radians around the axis vector.
|
static Quaternionf |
Quaternionf.fromAngleRadAxis(float angle,
Vector3f axis)
Creates a new quaternion from the rotation float angle in radians around the axis vector.
|
static Quaternionf |
Quaternionf.fromRotationTo(Vector3f from,
Vector3f to)
Creates a new quaternion from the angle-axis rotation defined from the first to the second vector.
|
static Complexf |
Complexf.fromRotationTo(Vector3f from,
Vector3f to)
Creates a new complex from the angle defined from the first to the second vector.
|
Vector3f |
Quaternionf.rotate(Vector3f v)
Rotates a vector by this quaternion.
|
Quaternionf |
Complexf.toQuaternion(Vector3f axis)
Converts this complex to a quaternion by
using the provided vector as a rotation axis.
|
| Modifier and Type | Method and Description |
|---|---|
Vector3f |
Matrix3f.getColumn(int col) |
Vector3f |
Matrix3f.getRow(int row) |
Vector3f |
Matrix3f.transform(double x,
double y,
double z) |
Vector3f |
Matrix3f.transform(float x,
float y,
float z) |
Vector3f |
Matrix3f.transform(Vector3f v) |
| Modifier and Type | Method and Description |
|---|---|
static MatrixNf |
MatrixNf.createLookAt(int size,
Vector3f eye,
Vector3f at,
Vector3f up)
Creates a "look at" matrix for the given eye point.
|
static Matrix4f |
Matrix4f.createLookAt(Vector3f eye,
Vector3f at,
Vector3f up)
Creates a "look at" matrix for the given eye point.
|
static Matrix3f |
Matrix3f.createScaling(Vector3f v) |
static Matrix4f |
Matrix4f.createTranslation(Vector3f v) |
Matrix3f |
Matrix3f.scale(Vector3f v) |
Vector3f |
Matrix3f.transform(Vector3f v) |
Matrix4f |
Matrix4f.translate(Vector3f v) |
| Modifier and Type | Field and Description |
|---|---|
static Vector3f |
Vector3f.FORWARD |
static Vector3f |
Vector3f.ONE |
static Vector3f |
Vector3f.RIGHT |
static Vector3f |
Vector3f.UNIT_X |
static Vector3f |
Vector3f.UNIT_Y |
static Vector3f |
Vector3f.UNIT_Z |
static Vector3f |
Vector3f.UP |
static Vector3f |
Vector3f.ZERO |
| Modifier and Type | Method and Description |
|---|---|
Vector3f |
Vector3f.abs() |
Vector3f |
Vector3f.add(double x,
double y,
double z) |
Vector3f |
Vector3f.add(float x,
float y,
float z) |
Vector3f |
Vector3f.add(Vector3f v) |
Vector3f |
Vector3f.ceil() |
Vector3f |
Vector3f.clone() |
static Vector3f |
Vector3f.createDirectionDeg(double theta,
double phi)
Gets the direction vector of a certain theta and phi in degrees.
|
static Vector3f |
Vector3f.createDirectionDeg(float theta,
float phi)
Gets the direction vector of a certain theta and phi in degrees.
|
static Vector3f |
Vector3f.createDirectionRad(double theta,
double phi)
Gets the direction vector of a certain theta and phi in radians.
|
static Vector3f |
Vector3f.createDirectionRad(float theta,
float phi)
Gets the direction vector of a certain theta and phi in radians.
|
static Vector3f |
Vector3f.createRandomDirection(Random random)
Gets the direction vector of a random pitch and yaw using the random specified.
|
Vector3f |
Vector3f.cross(double x,
double y,
double z) |
Vector3f |
Vector3f.cross(float x,
float y,
float z) |
Vector3f |
Vector3f.cross(Vector3f v) |
Vector3f |
Vector3f.div(double a) |
Vector3f |
Vector3f.div(double x,
double y,
double z) |
Vector3f |
Vector3f.div(float a) |
Vector3f |
Vector3f.div(float x,
float y,
float z) |
Vector3f |
Vector3f.div(Vector3f v) |
Vector3f |
Vector3f.floor() |
static Vector3f |
Vector3f.from(float n) |
static Vector3f |
Vector3f.from(float x,
float y,
float z) |
Vector3f |
Vector3f.max(double x,
double y,
double z) |
Vector3f |
Vector3f.max(float x,
float y,
float z) |
Vector3f |
Vector3f.max(Vector3f v) |
Vector3f |
Vector3f.min(double x,
double y,
double z) |
Vector3f |
Vector3f.min(float x,
float y,
float z) |
Vector3f |
Vector3f.min(Vector3f v) |
Vector3f |
Vector3f.mul(double a) |
Vector3f |
Vector3f.mul(double x,
double y,
double z) |
Vector3f |
Vector3f.mul(float a) |
Vector3f |
Vector3f.mul(float x,
float y,
float z) |
Vector3f |
Vector3f.mul(Vector3f v) |
Vector3f |
Vector3f.negate() |
Vector3f |
Vector3f.normalize() |
Vector3f |
Vector3f.pow(double pow) |
Vector3f |
Vector3f.pow(float power) |
Vector3f |
Vector3f.project(double x,
double y,
double z) |
Vector3f |
Vector3f.project(float x,
float y,
float z) |
Vector3f |
Vector3f.project(Vector3f v) |
Vector3f |
Vector3f.round() |
Vector3f |
Vector3f.sub(double x,
double y,
double z) |
Vector3f |
Vector3f.sub(float x,
float y,
float z) |
Vector3f |
Vector3f.sub(Vector3f v) |
Vector3f |
Vector3d.toFloat() |
Vector3f |
Vector3f.toFloat() |
Vector3f |
Vector3l.toFloat() |
Vector3f |
Vector3i.toFloat() |
Vector3f |
VectorNf.toVector3() |
Vector3f |
Vector4f.toVector3() |
Vector3f |
Vector2f.toVector3() |
Vector3f |
Vector2f.toVector3(double z) |
Vector3f |
Vector2f.toVector3(float z) |
| Modifier and Type | Method and Description |
|---|---|
Vector3f |
Vector3f.add(Vector3f v) |
int |
Vector3f.compareTo(Vector3f v) |
Vector3f |
Vector3f.cross(Vector3f v) |
float |
Vector3f.distance(Vector3f v) |
float |
Vector3f.distanceSquared(Vector3f v) |
Vector3f |
Vector3f.div(Vector3f v) |
float |
Vector3f.dot(Vector3f v) |
Vector3f |
Vector3f.max(Vector3f v) |
Vector3f |
Vector3f.min(Vector3f v) |
Vector3f |
Vector3f.mul(Vector3f v) |
Vector3f |
Vector3f.project(Vector3f v) |
Vector3f |
Vector3f.sub(Vector3f v) |
| Constructor and Description |
|---|
Vector2f(Vector3f v) |
Vector3f(Vector3f v) |
Vector4f(Vector3f v) |
Vector4f(Vector3f v,
double w) |
Vector4f(Vector3f v,
float w) |
VectorNf(Vector3f v) |
Copyright © 2013–2016 Flow Powered. All rights reserved.