| Package | Description |
|---|---|
| com.flowpowered.math.imaginary | |
| com.flowpowered.math.matrix |
| Modifier and Type | Field and Description |
|---|---|
static Complexd |
Complexd.IDENTITY
An immutable identity (1, 0) complex.
|
static Complexd |
Complexd.ZERO
An immutable identity (0, 0) complex.
|
| Modifier and Type | Method and Description |
|---|---|
Complexd |
Complexd.add(Complexd c)
Adds another complex to this one.
|
Complexd |
Complexd.add(double x,
double y)
Adds the double components of another complex to this one.
|
Complexd |
Complexd.add(float x,
float y)
Adds the float components of another complex to this one.
|
Complexd |
Complexd.clone() |
Complexd |
Complexd.conjugate()
Returns the conjugate of this complex.
|
Complexd |
Complexd.div(Complexd c)
Divides this complex by another one.
|
Complexd |
Complexd.div(double a)
Divides the components of this complex by a double scalar.
|
Complexd |
Complexd.div(double x,
double y)
Divides this complex by the double components of another one.
|
Complexd |
Complexd.div(float a)
Divides the components of this complex by a float scalar.
|
Complexd |
Complexd.div(float x,
float y)
Divides this complex by the float components of another one.
|
static Complexd |
Complexd.from(double x,
double y)
Creates a new complex from the double components.
|
static Complexd |
Complexd.fromAngleDeg(double angle)
Creates a new complex from the double angle in radians.
|
static Complexd |
Complexd.fromAngleDeg(float angle)
Creates a new complex from the float angle in degrees.
|
static Complexd |
Complexd.fromAngleRad(double angle)
Creates a new complex from the double angle in radians.
|
static Complexd |
Complexd.fromAngleRad(float angle)
Creates a new complex from the float angle in radians.
|
static Complexd |
Complexd.fromImaginary(double y)
Creates a new complex from the double imaginary components.
|
static Complexd |
Complexd.fromReal(double x)
Creates a new complex from the double real component.
|
static Complexd |
Complexd.fromRotationTo(Vector2d from,
Vector2d to)
Creates a new complex from the angle 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.
|
Complexd |
Complexd.invert()
Returns the inverse of this complex.
|
Complexd |
Complexd.mul(Complexd c)
Multiplies another complex with this one.
|
Complexd |
Complexd.mul(double a)
Multiplies the components of this complex by a double scalar.
|
Complexd |
Complexd.mul(double x,
double y)
Multiplies the double components of another complex with this one.
|
Complexd |
Complexd.mul(float a)
Multiplies the components of this complex by a float scalar.
|
Complexd |
Complexd.mul(float x,
float y)
Multiplies the float components of another complex with this one.
|
Complexd |
Complexd.normalize()
Normalizes this complex.
|
Complexd |
Complexd.sub(Complexd c)
Subtracts another complex from this one.
|
Complexd |
Complexd.sub(double x,
double y)
Subtracts the double components of another complex from this one.
|
Complexd |
Complexd.sub(float x,
float y)
Subtracts the float components of another complex from this one.
|
Complexd |
Quaterniond.toComplex()
Converts this quaternion to a complex by extracting the rotation around
the axis and returning it as a rotation in the plane perpendicular to the
rotation axis.
|
Complexd |
Complexd.toDouble() |
Complexd |
Complexf.toDouble() |
| Modifier and Type | Method and Description |
|---|---|
Complexd |
Complexd.add(Complexd c)
Adds another complex to this one.
|
int |
Complexd.compareTo(Complexd c) |
Complexd |
Complexd.div(Complexd c)
Divides this complex by another one.
|
double |
Complexd.dot(Complexd c)
Returns the dot product of this complex with another one.
|
Complexd |
Complexd.mul(Complexd c)
Multiplies another complex with this one.
|
Complexd |
Complexd.sub(Complexd c)
Subtracts another complex from this one.
|
| Constructor and Description |
|---|
Complexd(Complexd c)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Matrix4d |
Matrix4d.createRotation(Complexd rot) |
static Matrix3d |
Matrix3d.createRotation(Complexd rot) |
static Matrix2d |
Matrix2d.createRotation(Complexd rot) |
static MatrixNd |
MatrixNd.createRotation(int size,
Complexd rot) |
MatrixNd |
MatrixNd.rotate(Complexd rot) |
Matrix4d |
Matrix4d.rotate(Complexd rot) |
Matrix3d |
Matrix3d.rotate(Complexd rot) |
Matrix2d |
Matrix2d.rotate(Complexd rot) |
Copyright © 2013–2016 Flow Powered. All rights reserved.