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