public class Mat4 extends Object
Constructor and Description |
---|
Mat4() |
Modifier and Type | Method and Description |
---|---|
static com.google.gwt.typedarrays.shared.Float32Array |
create() |
static com.google.gwt.typedarrays.shared.Float32Array |
create(com.google.gwt.typedarrays.shared.Float32Array mat) |
static com.google.gwt.typedarrays.shared.Float32Array |
frustum(float left,
float right,
float bottom,
float top,
float near,
float far,
com.google.gwt.typedarrays.shared.Float32Array dest) |
static com.google.gwt.typedarrays.shared.Float32Array |
identity(com.google.gwt.typedarrays.shared.Float32Array dest) |
static com.google.gwt.typedarrays.shared.Float32Array |
lookAt(float[] eye,
float[] center,
float[] up,
com.google.gwt.typedarrays.shared.Float32Array dest)
Generates a look-at matrix with the given eye position, focal point, and up
axis
|
static com.google.gwt.typedarrays.shared.Float32Array |
ortho(float left,
float right,
float bottom,
float top,
float near,
float far,
com.google.gwt.typedarrays.shared.Float32Array dest)
Generates a orthogonal projection matrix with the given bounds
|
static com.google.gwt.typedarrays.shared.Float32Array |
perspective(float fovy,
float aspect,
float near,
float far,
com.google.gwt.typedarrays.shared.Float32Array dest) |
static com.google.gwt.typedarrays.shared.Float32Array |
rotate(com.google.gwt.typedarrays.shared.Float32Array mat,
float angle,
float[] axis,
com.google.gwt.typedarrays.shared.Float32Array dest) |
static com.google.gwt.typedarrays.shared.Float32Array |
scale(com.google.gwt.typedarrays.shared.Float32Array mat,
float[] vec,
com.google.gwt.typedarrays.shared.Float32Array dest)
Scales a matrix by the given vector
|
static com.google.gwt.typedarrays.shared.Float32Array |
set(com.google.gwt.typedarrays.shared.Float32Array mat,
com.google.gwt.typedarrays.shared.Float32Array dest) |
static com.google.gwt.typedarrays.shared.Float32Array |
translate(com.google.gwt.typedarrays.shared.Float32Array mat,
float[] vec,
com.google.gwt.typedarrays.shared.Float32Array dest) |
public static com.google.gwt.typedarrays.shared.Float32Array create(com.google.gwt.typedarrays.shared.Float32Array mat)
public static com.google.gwt.typedarrays.shared.Float32Array create()
public static com.google.gwt.typedarrays.shared.Float32Array identity(com.google.gwt.typedarrays.shared.Float32Array dest)
public static com.google.gwt.typedarrays.shared.Float32Array perspective(float fovy, float aspect, float near, float far, com.google.gwt.typedarrays.shared.Float32Array dest)
public static com.google.gwt.typedarrays.shared.Float32Array frustum(float left, float right, float bottom, float top, float near, float far, com.google.gwt.typedarrays.shared.Float32Array dest)
public static com.google.gwt.typedarrays.shared.Float32Array translate(com.google.gwt.typedarrays.shared.Float32Array mat, float[] vec, com.google.gwt.typedarrays.shared.Float32Array dest)
public static com.google.gwt.typedarrays.shared.Float32Array set(com.google.gwt.typedarrays.shared.Float32Array mat, com.google.gwt.typedarrays.shared.Float32Array dest)
public static com.google.gwt.typedarrays.shared.Float32Array rotate(com.google.gwt.typedarrays.shared.Float32Array mat, float angle, float[] axis, com.google.gwt.typedarrays.shared.Float32Array dest)
public static com.google.gwt.typedarrays.shared.Float32Array scale(com.google.gwt.typedarrays.shared.Float32Array mat, float[] vec, com.google.gwt.typedarrays.shared.Float32Array dest)
mat
- mat4 to scalevec
- vec3 specifying the scale for each axisdest
- mat4 receiving operation result. If not specified result is
written to matpublic static com.google.gwt.typedarrays.shared.Float32Array ortho(float left, float right, float bottom, float top, float near, float far, com.google.gwt.typedarrays.shared.Float32Array dest)
left
- Left bound of the frustumright
- Right bound of the frustumbottom
- Bottom bound of the frustumtop
- Top bound of the frustumnear
- Near bound of the frustumfar
- Far bound of the frustumdest
- frustum matrix will be written intopublic static com.google.gwt.typedarrays.shared.Float32Array lookAt(float[] eye, float[] center, float[] up, com.google.gwt.typedarrays.shared.Float32Array dest)
eye
- Position of the viewercenter
- Point the viewer is looking atup
- vec3 pointing "up"dest
- frustum matrix will be written intoCopyright © 2018 Xalys. All rights reserved.