public class Matrix4d extends Object implements Matrixd, Serializable, Cloneable
| Modifier and Type | Field and Description |
|---|---|
static Matrix4d |
IDENTITY |
static Matrix4d |
ZERO |
| Constructor and Description |
|---|
Matrix4d() |
Matrix4d(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) |
Matrix4d(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) |
Matrix4d(Matrix2d m) |
Matrix4d(Matrix3d m) |
Matrix4d(Matrix4d m) |
Matrix4d(MatrixNd m) |
| Modifier and Type | Method and Description |
|---|---|
Matrix4d |
abs() |
Matrix4d |
add(Matrix4d m) |
Matrix4d |
ceil() |
Matrix4d |
clone() |
static Matrix4d |
createLookAt(Vector3d eye,
Vector3d at,
Vector3d up)
Creates a "look at" matrix for the given eye point.
|
static Matrix4d |
createOrthographic(double right,
double left,
double top,
double bottom,
double near,
double far)
Creates an orthographic viewing frustum built from the provided values
|
static Matrix4d |
createOrthographic(float right,
float left,
float top,
float bottom,
float near,
float far)
Creates an orthographic viewing frustum built from the provided values
|
static Matrix4d |
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 Matrix4d |
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 Matrix4d |
createRotation(Complexd rot) |
static Matrix4d |
createRotation(Quaterniond rot) |
static Matrix4d |
createScaling(double scale) |
static Matrix4d |
createScaling(double x,
double y,
double z,
double w) |
static Matrix4d |
createScaling(float scale) |
static Matrix4d |
createScaling(float x,
float y,
float z,
float w) |
static Matrix4d |
createScaling(Vector4d v) |
static Matrix4d |
createTranslation(double x,
double y,
double z) |
static Matrix4d |
createTranslation(float x,
float y,
float z) |
static Matrix4d |
createTranslation(Vector3d v) |
double |
determinant() |
Matrix4d |
div(double a) |
Matrix4d |
div(float a) |
Matrix4d |
div(Matrix4d m) |
boolean |
equals(Object o) |
Matrix4d |
floor() |
static Matrix4d |
from(double n) |
static Matrix4d |
from(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) |
static Matrix4d |
fromDiagonal(double m00,
double m11,
double m22,
double m33) |
double |
get(int row,
int col) |
Vector4d |
getColumn(int col) |
Vector4d |
getRow(int row) |
int |
hashCode() |
Matrix4d |
invert() |
Matrix4d |
mul(double a) |
Matrix4d |
mul(float a) |
Matrix4d |
mul(Matrix4d m) |
Matrix4d |
negate() |
Matrix4d |
pow(double pow) |
Matrix4d |
pow(float pow) |
Matrix4d |
rotate(Complexd rot) |
Matrix4d |
rotate(Quaterniond rot) |
Matrix4d |
round() |
Matrix4d |
scale(double scale) |
Matrix4d |
scale(double x,
double y,
double z,
double w) |
Matrix4d |
scale(float scale) |
Matrix4d |
scale(float x,
float y,
float z,
float w) |
Matrix4d |
scale(Vector4d v) |
Matrix4d |
sub(Matrix4d m) |
double[] |
toArray() |
double[] |
toArray(boolean columnMajor) |
Matrix4d |
toDouble() |
Matrix4f |
toFloat() |
Matrix2d |
toMatrix2() |
Matrix3d |
toMatrix3() |
MatrixNd |
toMatrixN() |
String |
toString() |
double |
trace() |
Vector4d |
transform(double x,
double y,
double z,
double w) |
Vector4d |
transform(float x,
float y,
float z,
float w) |
Vector4d |
transform(Vector4d v) |
Matrix4d |
translate(double x,
double y,
double z) |
Matrix4d |
translate(float x,
float y,
float z) |
Matrix4d |
translate(Vector3d v) |
Matrix4d |
transpose() |
public Matrix4d()
public Matrix4d(Matrix2d m)
public Matrix4d(Matrix3d m)
public Matrix4d(Matrix4d m)
public Matrix4d(MatrixNd m)
public Matrix4d(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 Matrix4d(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 Matrix4d mul(float a)
public Matrix4d div(float a)
public Matrix4d pow(float pow)
public Matrix4d translate(float x, float y, float z)
public Matrix4d translate(double x, double y, double z)
public Matrix4d scale(float scale)
public Matrix4d scale(double scale)
public Matrix4d scale(float x, float y, float z, float w)
public Matrix4d scale(double x, double y, double z, double w)
public Matrix4d rotate(Quaterniond rot)
public Vector4d transform(float x, float y, float z, float w)
public Vector4d transform(double x, double y, double z, double w)
public double determinant()
determinant in interface Matrixdpublic Matrix2d toMatrix2()
public Matrix3d toMatrix3()
public MatrixNd toMatrixN()
public double[] toArray()
public static Matrix4d from(double n)
public static Matrix4d from(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 static Matrix4d fromDiagonal(double m00, double m11, double m22, double m33)
public static Matrix4d createScaling(float scale)
public static Matrix4d createScaling(double scale)
public static Matrix4d createScaling(float x, float y, float z, float w)
public static Matrix4d createScaling(double x, double y, double z, double w)
public static Matrix4d createTranslation(float x, float y, float z)
public static Matrix4d createTranslation(double x, double y, double z)
public static Matrix4d createRotation(Quaterniond rot)
public static Matrix4d createLookAt(Vector3d eye, Vector3d at, Vector3d up)
eye - The position of the cameraat - The point that the camera is looking atup - The "up" vectorpublic static Matrix4d 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 Matrix4d 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 Matrix4d 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 frustumpublic static Matrix4d 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 frustumCopyright © 2013–2016 Flow Powered. All rights reserved.