public class MatrixNf extends Object implements Matrixf, Serializable, Cloneable
| Modifier and Type | Field and Description |
|---|---|
static MatrixNf |
IDENTITY_2 |
static MatrixNf |
IDENTITY_3 |
static MatrixNf |
IDENTITY_4 |
| Constructor and Description |
|---|
MatrixNf(float... m) |
MatrixNf(int size) |
MatrixNf(Matrix2f m) |
MatrixNf(Matrix3f m) |
MatrixNf(Matrix4f m) |
MatrixNf(MatrixNf m) |
| Modifier and Type | Method and Description |
|---|---|
MatrixNf |
abs() |
MatrixNf |
add(MatrixNf m) |
MatrixNf |
ceil() |
MatrixNf |
clone() |
static MatrixNf |
createLookAt(int size,
Vector3f eye,
Vector3f at,
Vector3f up)
Creates a "look at" matrix for the given eye point.
|
static MatrixNf |
createOrthographic(int size,
double right,
double left,
double top,
double bottom,
double near,
double far)
Creates an orthographic viewing frustum built from the provided values
|
static MatrixNf |
createOrthographic(int size,
float right,
float left,
float top,
float bottom,
float near,
float far)
Creates an orthographic viewing frustum built from the provided values
|
static MatrixNf |
createPerspective(int size,
double fov,
double aspect,
double near,
double far)
Creates a perspective projection matrix with the given (x) FOV, aspect, near and far planes
|
static MatrixNf |
createPerspective(int size,
float fov,
float aspect,
float near,
float far)
Creates a perspective projection matrix with the given (x) FOV, aspect, near and far planes
|
static MatrixNf |
createRotation(int size,
Complexf rot) |
static MatrixNf |
createRotation(int size,
Quaternionf rot) |
static MatrixNf |
createScaling(float... vec) |
static MatrixNf |
createScaling(VectorNf v) |
static MatrixNf |
createTranslation(float... vec) |
static MatrixNf |
createTranslation(VectorNf v) |
float |
determinant() |
MatrixNf |
div(double a) |
MatrixNf |
div(float a) |
MatrixNf |
div(MatrixNf m) |
boolean |
equals(Object obj) |
MatrixNf |
floor() |
float |
get(int row,
int col) |
VectorNf |
getColumn(int col) |
VectorNf |
getRow(int row) |
int |
hashCode() |
MatrixNf |
invert() |
MatrixNf |
mul(double a) |
MatrixNf |
mul(float a) |
MatrixNf |
mul(MatrixNf m) |
MatrixNf |
negate() |
MatrixNf |
pow(double pow) |
MatrixNf |
pow(float pow) |
MatrixNf |
resize(int size) |
MatrixNf |
rotate(Complexf rot) |
MatrixNf |
rotate(Quaternionf rot) |
MatrixNf |
round() |
MatrixNf |
scale(float... v) |
MatrixNf |
scale(VectorNf v) |
void |
set(int row,
int col,
double val) |
void |
set(int row,
int col,
float val) |
void |
setIdentity() |
void |
setZero() |
int |
size() |
MatrixNf |
sub(MatrixNf m) |
float[] |
toArray() |
float[] |
toArray(boolean columnMajor) |
MatrixNd |
toDouble() |
MatrixNf |
toFloat() |
Matrix2f |
toMatrix2() |
Matrix3f |
toMatrix3() |
Matrix4f |
toMatrix4() |
String |
toString() |
float |
trace() |
VectorNf |
transform(float... vec) |
VectorNf |
transform(VectorNf v) |
MatrixNf |
translate(float... v) |
MatrixNf |
translate(VectorNf v) |
MatrixNf |
transpose() |
public static final MatrixNf IDENTITY_2
public static final MatrixNf IDENTITY_3
public static final MatrixNf IDENTITY_4
public MatrixNf(int size)
public MatrixNf(Matrix2f m)
public MatrixNf(Matrix3f m)
public MatrixNf(Matrix4f m)
public MatrixNf(float... m)
public MatrixNf(MatrixNf m)
public int size()
public void set(int row,
int col,
double val)
public void set(int row,
int col,
float val)
public final void setIdentity()
public void setZero()
public MatrixNf resize(int size)
public MatrixNf mul(double a)
public MatrixNf div(double a)
public MatrixNf pow(double pow)
public MatrixNf translate(float... v)
public MatrixNf scale(float... v)
public MatrixNf rotate(Quaternionf rot)
public VectorNf transform(float... vec)
public float determinant()
determinant in interface Matrixfpublic Matrix2f toMatrix2()
public Matrix3f toMatrix3()
public Matrix4f toMatrix4()
public float[] toArray()
public static MatrixNf createScaling(float... vec)
public static MatrixNf createTranslation(float... vec)
public static MatrixNf createRotation(int size, Quaternionf rot)
public static MatrixNf createLookAt(int size, Vector3f eye, Vector3f at, Vector3f up)
size - The size of the matrix, minimum of 4eye - The position of the cameraat - The point that the camera is looking atup - The "up" vectorpublic static MatrixNf createPerspective(int size, double fov, double aspect, double near, double far)
size - The size of the matrix, minimum of 4fov - The field of view in the x directionaspect - The aspect ratio, usually width/heightnear - The near plane, cannot be 0far - the far plane, zFar cannot equal zNearpublic static MatrixNf createPerspective(int size, float fov, float aspect, float near, float far)
size - The size of the matrix, minimum of 4fov - The field of view in the x directionaspect - The aspect ratio, usually width/heightnear - The near plane, cannot be 0far - the far plane, zFar cannot equal zNearpublic static MatrixNf createOrthographic(int size, double right, double left, double top, double bottom, double near, double far)
size - The size of the matrix, minimum of 4right - the right most plane of the viewing frustumleft - the left most plane of the viewing frustumtop - the top plane of the viewing frustumbottom - the bottom plane of the viewing frustumnear - the near plane of the viewing frustumfar - the far plane of the viewing frustumpublic static MatrixNf createOrthographic(int size, float right, float left, float top, float bottom, float near, float far)
size - The size of the matrix, minimum of 4right - the right most plane of the viewing frustumleft - the left most plane of the viewing frustumtop - the top plane of the viewing frustumbottom - the bottom plane of the viewing frustumnear - the near plane of the viewing frustumfar - the far plane of the viewing frustumCopyright © 2013–2016 Flow Powered. All rights reserved.