JSci.awt
Class Matrix3D

java.lang.Object
  extended byJSci.awt.Matrix3D

final class Matrix3D
extends java.lang.Object


Field Summary
(package private)  float xo
           
(package private)  float xx
           
(package private)  float xy
           
(package private)  float xz
           
(package private)  float yo
           
(package private)  float yx
           
(package private)  float yy
           
(package private)  float yz
           
(package private)  float zo
           
(package private)  float zx
           
(package private)  float zy
           
(package private)  float zz
           
 
Constructor Summary
(package private) Matrix3D()
          Create a new identity matrix
 
Method Summary
(package private)  void identity()
          Reinitialize to the identity matrix
(package private)  void multiply(Matrix3D rhs)
          Multiply this matrix by a second: M = M*R
(package private)  void scale(float f)
          Scale by f in all dimensions
(package private)  void scale(float xf, float yf, float zf)
          Scale along each axis independently
 java.lang.String toString()
           
(package private)  void transform(float[] v, int[] tv, int nvert)
          Transform nvert points from v into tv.
(package private)  void translate(float x, float y, float z)
          Translate the origin
(package private)  void xRotate(double theta)
          rotate theta degrees about the x axis
(package private)  void yRotate(double theta)
          rotate theta degrees about the y axis
(package private)  void zRotate(double theta)
          rotate theta degrees about the z axis
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

xx

float xx

xy

float xy

xz

float xz

xo

float xo

yx

float yx

yy

float yy

yz

float yz

yo

float yo

zx

float zx

zy

float zy

zz

float zz

zo

float zo
Constructor Detail

Matrix3D

Matrix3D()
Create a new identity matrix

Method Detail

scale

void scale(float f)
Scale by f in all dimensions


scale

void scale(float xf,
           float yf,
           float zf)
Scale along each axis independently


translate

void translate(float x,
               float y,
               float z)
Translate the origin


yRotate

void yRotate(double theta)
rotate theta degrees about the y axis


xRotate

void xRotate(double theta)
rotate theta degrees about the x axis


zRotate

void zRotate(double theta)
rotate theta degrees about the z axis


multiply

void multiply(Matrix3D rhs)
Multiply this matrix by a second: M = M*R


identity

void identity()
Reinitialize to the identity matrix


transform

void transform(float[] v,
               int[] tv,
               int nvert)
Transform nvert points from v into tv. v contains the input coordinates in floating point. Three successive entries in the array constitute a point. tv ends up holding the transformed points as integers; three successive entries per point


toString

public java.lang.String toString()