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