| Package | Description |
|---|---|
| com.flowpowered.math | |
| com.flowpowered.math.imaginary | |
| com.flowpowered.math.matrix | |
| com.flowpowered.math.vector |
| Modifier and Type | Method and Description |
|---|---|
static Vector2d |
GenericMath.lerp(Vector2d a,
Vector2d b,
double percent)
Calculates the linear interpolation between a and b with the given percent
|
static Vector2d |
GenericMath.normalizeSafe(Vector2d v)
Attempts to normalize a vector.
|
| Modifier and Type | Method and Description |
|---|---|
static Vector2d |
GenericMath.lerp(Vector2d a,
Vector2d b,
double percent)
Calculates the linear interpolation between a and b with the given percent
|
static Vector2d |
GenericMath.normalizeSafe(Vector2d v)
Attempts to normalize a vector.
|
| Modifier and Type | Method and Description |
|---|---|
Vector2d |
Complexd.getDirection()
Returns a unit vector pointing in the same direction as this complex on the complex plane.
|
Vector2d |
Complexd.rotate(double x,
double y)
Rotates the double components of a vector by this complex.
|
Vector2d |
Complexd.rotate(float x,
float y)
Rotates the float components of a vector by this complex.
|
Vector2d |
Complexd.rotate(Vector2d v)
Rotates a vector by this complex.
|
| Modifier and Type | Method and Description |
|---|---|
static Complexd |
Complexd.fromRotationTo(Vector2d from,
Vector2d to)
Creates a new complex from the angle defined from the first to the second vector.
|
Vector2d |
Complexd.rotate(Vector2d v)
Rotates a vector by this complex.
|
| Modifier and Type | Method and Description |
|---|---|
Vector2d |
Matrix2d.getColumn(int col) |
Vector2d |
Matrix2d.getRow(int row) |
Vector2d |
Matrix2d.transform(double x,
double y) |
Vector2d |
Matrix2d.transform(float x,
float y) |
Vector2d |
Matrix2d.transform(Vector2d v) |
| Modifier and Type | Method and Description |
|---|---|
static Matrix2d |
Matrix2d.createScaling(Vector2d v) |
static Matrix3d |
Matrix3d.createTranslation(Vector2d v) |
Matrix2d |
Matrix2d.scale(Vector2d v) |
Vector2d |
Matrix2d.transform(Vector2d v) |
Matrix3d |
Matrix3d.translate(Vector2d v) |
| Modifier and Type | Field and Description |
|---|---|
static Vector2d |
Vector2d.ONE |
static Vector2d |
Vector2d.UNIT_X |
static Vector2d |
Vector2d.UNIT_Y |
static Vector2d |
Vector2d.ZERO |
| Modifier and Type | Method and Description |
|---|---|
Vector2d |
Vector2d.abs() |
Vector2d |
Vector2d.add(double x,
double y) |
Vector2d |
Vector2d.add(float x,
float y) |
Vector2d |
Vector2d.add(Vector2d v) |
Vector2d |
Vector2d.ceil() |
Vector2d |
Vector2d.clone() |
static Vector2d |
Vector2d.createDirectionDeg(double angle)
Gets the direction vector of a certain angle in degrees.
|
static Vector2d |
Vector2d.createDirectionDeg(float angle)
Gets the direction vector of a certain angle in degrees.
|
static Vector2d |
Vector2d.createDirectionRad(double angle)
Gets the direction vector of a certain angle in radians.
|
static Vector2d |
Vector2d.createDirectionRad(float angle)
Gets the direction vector of a certain angle in radians.
|
static Vector2d |
Vector2d.createRandomDirection(Random random)
Gets the direction vector of a random angle using the random specified.
|
Vector2d |
Vector2d.div(double a) |
Vector2d |
Vector2d.div(double x,
double y) |
Vector2d |
Vector2d.div(float a) |
Vector2d |
Vector2d.div(float x,
float y) |
Vector2d |
Vector2d.div(Vector2d v) |
Vector2d |
Vector2d.floor() |
static Vector2d |
Vector2d.from(double n) |
static Vector2d |
Vector2d.from(double x,
double y) |
Vector2d |
Vector2d.max(double x,
double y) |
Vector2d |
Vector2d.max(float x,
float y) |
Vector2d |
Vector2d.max(Vector2d v) |
Vector2d |
Vector2d.min(double x,
double y) |
Vector2d |
Vector2d.min(float x,
float y) |
Vector2d |
Vector2d.min(Vector2d v) |
Vector2d |
Vector2d.mul(double a) |
Vector2d |
Vector2d.mul(double x,
double y) |
Vector2d |
Vector2d.mul(float a) |
Vector2d |
Vector2d.mul(float x,
float y) |
Vector2d |
Vector2d.mul(Vector2d v) |
Vector2d |
Vector2d.negate() |
Vector2d |
Vector2d.normalize() |
Vector2d |
Vector2d.pow(double power) |
Vector2d |
Vector2d.pow(float pow) |
Vector2d |
Vector2d.project(double x,
double y) |
Vector2d |
Vector2d.project(float x,
float y) |
Vector2d |
Vector2d.project(Vector2d v) |
Vector2d |
Vector2d.round() |
Vector2d |
Vector2d.sub(double x,
double y) |
Vector2d |
Vector2d.sub(float x,
float y) |
Vector2d |
Vector2d.sub(Vector2d v) |
Vector2d |
Vector2d.toDouble() |
Vector2d |
Vector2f.toDouble() |
Vector2d |
Vector2l.toDouble() |
Vector2d |
Vector2i.toDouble() |
Vector2d |
VectorNd.toVector2() |
Vector2d |
Vector4d.toVector2() |
Vector2d |
Vector3d.toVector2() |
Vector2d |
Vector3d.toVector2(boolean useZ) |
| Modifier and Type | Method and Description |
|---|---|
Vector2d |
Vector2d.add(Vector2d v) |
int |
Vector2d.compareTo(Vector2d v) |
double |
Vector2d.distance(Vector2d v) |
double |
Vector2d.distanceSquared(Vector2d v) |
Vector2d |
Vector2d.div(Vector2d v) |
double |
Vector2d.dot(Vector2d v) |
Vector2d |
Vector2d.max(Vector2d v) |
Vector2d |
Vector2d.min(Vector2d v) |
Vector2d |
Vector2d.mul(Vector2d v) |
Vector2d |
Vector2d.project(Vector2d v) |
Vector2d |
Vector2d.sub(Vector2d v) |
| Constructor and Description |
|---|
Vector2d(Vector2d v) |
Vector3d(Vector2d v) |
Vector3d(Vector2d v,
double z) |
Vector3d(Vector2d v,
float z) |
Vector4d(Vector2d v) |
Vector4d(Vector2d v,
double z,
double w) |
Vector4d(Vector2d v,
float z,
float w) |
VectorNd(Vector2d v) |
Copyright © 2013–2016 Flow Powered. All rights reserved.