Class iicm.utils3d.Mat4f
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class iicm.utils3d.Mat4f

java.lang.Object
   |
   +----iicm.utils3d.Mat4f

public final class Mat4f
extends Object
Mat4f - small utilities for 4D matrices. Copyright (c) 1997 IICM

Variable Index

 o identity3d
3x3 identity matrix
 o identity4d
4x4 identity matrix

Method Index

 o invertMatrix33(float[], float[])
compute the inverse of a 3x3 matrix.
 o invertMatrix33inside44(float[], float[])
compute the inverse of the 3x3 subpart of a 4x4 matrix without changing other elements.
 o invertMatrix33of44(float[], float[])
compute the inverse of a 3x3 subpart of a 4x4 matrix in: 4x4 float[], out: 3x3 float[]
 o invertMatrix44(float[], float[])
compute the inverse of a 4x4 matrix, where the last column is supposed to be (0, 0, 0, 1), i.e.
 o multiplyMat43in44(float[], float[])
multiply to 4x4 matrices, where the last column is (0, 0, 0, 1)
 o printMat33(float[])
 o printMat44(float[])
 o transformPoint3Mat44(float[], float[])
transform 3D point by 4D matrix (incl.
 o transformVector3Mat44(float[], float[])
transform 3D vector by 3x3 subpart of 4D matrix (w/o translation)
 o transformVector3Mat44transp(float[], float[])
transform 3D vector by the transposed 3x3 subpart of 4D matrix.
 o transposeMatrix33(float[])
transpose a 3x3 matrix
 o transposeMatrix33inside44(float[])
transpose the 3x3 subpart of a 4x4 matrix without changing other elements.

Variables

 o identity3d
  public static float identity3d[]
3x3 identity matrix
 o identity4d
  public static float identity4d[]
4x4 identity matrix

Methods

 o invertMatrix33
  public static boolean invertMatrix33(float mat[],
                                       float inv[])
compute the inverse of a 3x3 matrix. matrix storage: 3x3 float[] mat and inv must not point to the same storage.
Returns:
flag whether matrix was regular
 o invertMatrix44
  public static boolean invertMatrix44(float mat[],
                                       float inv[])
compute the inverse of a 4x4 matrix, where the last column is supposed to be (0, 0, 0, 1), i.e. without perspective transformation. mat and inv must not point to the same storage.
Returns:
flag whether matrix was regular
 o invertMatrix33of44
  public static boolean invertMatrix33of44(float mat[],
                                           float inv[])
compute the inverse of a 3x3 subpart of a 4x4 matrix in: 4x4 float[], out: 3x3 float[]
Returns:
flag whether matrix was regular
 o invertMatrix33inside44
  public static boolean invertMatrix33inside44(float mat[],
                                               float inv[])
compute the inverse of the 3x3 subpart of a 4x4 matrix without changing other elements. mat and inv must not point to the same storage.
Returns:
flag whether matrix was regular
 o transposeMatrix33
  public static void transposeMatrix33(float mat[])
transpose a 3x3 matrix
 o transposeMatrix33inside44
  public static void transposeMatrix33inside44(float mat[])
transpose the 3x3 subpart of a 4x4 matrix without changing other elements.
 o transformPoint3Mat44
  public static Vec3f transformPoint3Mat44(float p[],
                                           float mat[])
transform 3D point by 4D matrix (incl. translation)
 o transformVector3Mat44
  public static Vec3f transformVector3Mat44(float p[],
                                            float mat[])
transform 3D vector by 3x3 subpart of 4D matrix (w/o translation)
 o transformVector3Mat44transp
  public static Vec3f transformVector3Mat44transp(float p[],
                                                  float mat[])
transform 3D vector by the transposed 3x3 subpart of 4D matrix. (typical operation for transforming normal vectors.)
 o multiplyMat43in44
  public static float[] multiplyMat43in44(float a[],
                                          float b[])
multiply to 4x4 matrices, where the last column is (0, 0, 0, 1)
 o printMat44
  public static void printMat44(float mat[])
 o printMat33
  public static void printMat33(float mat[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index