public class Matrix4f extends Object implements Matrixf, Serializable, Cloneable
| Modifier and Type | Field and Description |
|---|---|
static Matrix4f |
IDENTITY |
static Matrix4f |
ZERO |
| Constructor and Description |
|---|
Matrix4f() |
Matrix4f(double m00,
double m01,
double m02,
double m03,
double m10,
double m11,
double m12,
double m13,
double m20,
double m21,
double m22,
double m23,
double m30,
double m31,
double m32,
double m33) |
Matrix4f(float m00,
float m01,
float m02,
float m03,
float m10,
float m11,
float m12,
float m13,
float m20,
float m21,
float m22,
float m23,
float m30,
float m31,
float m32,
float m33) |
Matrix4f(Matrix2f m) |
Matrix4f(Matrix3f m) |
Matrix4f(Matrix4f m) |
Matrix4f(MatrixNf m) |
| Modifier and Type | Method and Description |
|---|---|
Matrix4f |
abs() |
Matrix4f |
add(Matrix4f m) |
Matrix4f |
ceil() |
Matrix4f |
clone() |
static Matrix4f |
createLookAt(Vector3f eye,
Vector3f at,
Vector3f up)
Creates a "look at" matrix for the given eye point.
|
static Matrix4f |
createOrthographic(double right,
double left,
double top,
double bottom,
double near,
double far)
Creates an orthographic viewing frustum built from the provided values
|
static Matrix4f |
createOrthographic(float right,
float left,
float top,
float bottom,
float near,
float far)
Creates an orthographic viewing frustum built from the provided values
|
static Matrix4f |
createPerspective(double fov,
double aspect,
double near,
double far)
Creates a perspective projection matrix with the given (x) FOV, aspect, near and far planes
|
static Matrix4f |
createPerspective(float fov,
float aspect,
float near,
float far)
Creates a perspective projection matrix with the given (x) FOV, aspect, near and far planes
|
static Matrix4f |
createRotation(Complexf rot) |
static Matrix4f |
createRotation(Quaternionf rot) |
static Matrix4f |
createScaling(double scale) |
static Matrix4f |
createScaling(double x,
double y,
double z,
double w) |
static Matrix4f |
createScaling(float scale) |
static Matrix4f |
createScaling(float x,
float y,
float z,
float w) |
static Matrix4f |
createScaling(Vector4f v) |
static Matrix4f |
createTranslation(double x,
double y,
double z) |
static Matrix4f |
createTranslation(float x,
float y,
float z) |
static Matrix4f |
createTranslation(Vector3f v) |
float |
determinant() |
Matrix4f |
div(double a) |
Matrix4f |
div(float a) |
Matrix4f |
div(Matrix4f m) |
boolean |
equals(Object o) |
Matrix4f |
floor() |
static Matrix4f |
from(float n) |
static Matrix4f |
from(float m00,
float m01,
float m02,
float m03,
float m10,
float m11,
float m12,
float m13,
float m20,
float m21,
float m22,
float m23,
float m30,
float m31,
float m32,
float m33) |
static Matrix4f |
fromDiagonal(float m00,
float m11,
float m22,
float m33) |
float |
get(int row,
int col) |
Vector4f |
getColumn(int col) |
Vector4f |
getRow(int row) |
int |
hashCode() |
Matrix4f |
invert() |
Matrix4f |
mul(double a) |
Matrix4f |
mul(float a) |
Matrix4f |
mul(Matrix4f m) |
Matrix4f |
negate() |
Matrix4f |
pow(double pow) |
Matrix4f |
pow(float pow) |
Matrix4f |
rotate(Complexf rot) |
Matrix4f |
rotate(Quaternionf rot) |
Matrix4f |
round() |
Matrix4f |
scale(double scale) |
Matrix4f |
scale(double x,
double y,
double z,
double w) |
Matrix4f |
scale(float scale) |
Matrix4f |
scale(float x,
float y,
float z,
float w) |
Matrix4f |
scale(Vector4f v) |
Matrix4f |
sub(Matrix4f m) |
float[] |
toArray() |
float[] |
toArray(boolean columnMajor) |
Matrix4d |
toDouble() |
Matrix4f |
toFloat() |
Matrix2f |
toMatrix2() |
Matrix3f |
toMatrix3() |
MatrixNf |
toMatrixN() |
String |
toString() |
float |
trace() |
Vector4f |
transform(double x,
double y,
double z,
double w) |
Vector4f |
transform(float x,
float y,
float z,
float w) |
Vector4f |
transform(Vector4f v) |
Matrix4f |
translate(double x,
double y,
double z) |
Matrix4f |
translate(float x,
float y,
float z) |
Matrix4f |
translate(Vector3f v) |
Matrix4f |
transpose() |
public Matrix4f()
public Matrix4f(Matrix2f m)
public Matrix4f(Matrix3f m)
public Matrix4f(Matrix4f m)
public Matrix4f(MatrixNf m)
public Matrix4f(double m00,
double m01,
double m02,
double m03,
double m10,
double m11,
double m12,
double m13,
double m20,
double m21,
double m22,
double m23,
double m30,
double m31,
double m32,
double m33)
public Matrix4f(float m00,
float m01,
float m02,
float m03,
float m10,
float m11,
float m12,
float m13,
float m20,
float m21,
float m22,
float m23,
float m30,
float m31,
float m32,
float m33)
public Matrix4f mul(double a)
public Matrix4f div(double a)
public Matrix4f pow(double pow)
public Matrix4f translate(double x, double y, double z)
public Matrix4f translate(float x, float y, float z)
public Matrix4f scale(double scale)
public Matrix4f scale(float scale)
public Matrix4f scale(double x, double y, double z, double w)
public Matrix4f scale(float x, float y, float z, float w)
public Matrix4f rotate(Quaternionf rot)
public Vector4f transform(double x, double y, double z, double w)
public Vector4f transform(float x, float y, float z, float w)
public float determinant()
determinant in interface Matrixfpublic Matrix2f toMatrix2()
public Matrix3f toMatrix3()
public MatrixNf toMatrixN()
public float[] toArray()
public static Matrix4f from(float n)
public static Matrix4f from(float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, float m20, float m21, float m22, float m23, float m30, float m31, float m32, float m33)
public static Matrix4f fromDiagonal(float m00, float m11, float m22, float m33)
public static Matrix4f createScaling(double scale)
public static Matrix4f createScaling(float scale)
public static Matrix4f createScaling(double x, double y, double z, double w)
public static Matrix4f createScaling(float x, float y, float z, float w)
public static Matrix4f createTranslation(double x, double y, double z)
public static Matrix4f createTranslation(float x, float y, float z)
public static Matrix4f createRotation(Quaternionf rot)
public static Matrix4f createLookAt(Vector3f eye, Vector3f at, Vector3f up)
eye - The position of the cameraat - The point that the camera is looking atup - The "up" vectorpublic static Matrix4f createPerspective(double fov, double aspect, double near, double far)
fov - The field of view in the x directionaspect - The aspect ratio, usually width/heightnear - The near plane, cannot be 0far - the far plane, far cannot equal nearpublic static Matrix4f createPerspective(float fov, float aspect, float near, float far)
fov - The field of view in the x directionaspect - The aspect ratio, usually width/heightnear - The near plane, cannot be 0far - the far plane, far cannot equal nearpublic static Matrix4f createOrthographic(double right, double left, double top, double bottom, double near, double far)
right - 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 Matrix4f createOrthographic(float right, float left, float top, float bottom, float near, float far)
right - 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.