Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
C
D
E
I
L
M
N
O
P
R
S
T
V
C
color
- Variable in class
Triangle
Color, for filling, illumination, etc.
D
drawTri(Graphics)
- Method in class
Triangle
Creates and closes a GeneralPath for the triangle, sets the color and fills it.
E
emptyMat()
- Static method in class
Mat
Creates an empty matrix with 1.0 in 3,3 lower corner
I
innerProd(Vec, Vec)
- Static method in class
Vec
Inner product using the x, y, z components.
L
length(Vec)
- Static method in class
Vec
Computes vector length.
M
Mat
- class
Mat
.
Matrix transforms and composites for homogeneous coords points in 3D.
Mat()
- Constructor for class
Mat
Creates unit matrix with homogeneous 4th row, column elements
main(String[])
- Static method in class
Mat
Tests and prints results of all methods (all are static)
main(String[])
- Static method in class
TriDraw
Sets up JFrame and adds this JPanel, which will draw.
main(String[])
- Static method in class
Triangle
Tests and prints results of all methods (all are static)
main(String[])
- Static method in class
Vec
Tests and prints results of all methods (all are static)
mat
- Variable in class
Mat
The only (non-static) field, a 4x4 array.
matrixXmatrix(Mat, Mat)
- Static method in class
Mat
Matrix product
matrixXvector(Mat, Vec)
- Static method in class
Mat
Matrix x vector ==> vector
N
normal
- Variable in class
Triangle
The unit outward normal
normalToTriangle()
- Method in class
Triangle
Finds the unit normal to a triangle.
normalize(Vec)
- Static method in class
Vec
Creates a normalized, unit length, copy of a Vec.
normalizeSame(Vec)
- Static method in class
Vec
Normalizes (alters) a Vec to unit length.
O
outerProd(Vec, Vec)
- Static method in class
Vec
Outer, or vector, product using the x, y, z components.
P
paintComponent(Graphics)
- Method in class
TriDraw
Draws red triangle, upper right then translated and green copy.
R
rotxMat(double)
- Static method in class
Mat
Creates a rotation matrix around x axis.
rotyMat(double)
- Static method in class
Mat
Creates a rotation matrix around y axis.
rotzMat(double)
- Static method in class
Mat
Creates a rotation matrix around z axis.
S
scaleMat(double)
- Static method in class
Mat
Creates a scaling matrix.
T
TriDraw
- class
TriDraw
.
Demo/test: Draws a Triangle in a panel.
TriDraw()
- Constructor for class
TriDraw
Triangle
- class
Triangle
.
A triangle in 3D, with three Vec vertices and a reflectivity (a Color).
Triangle()
- Constructor for class
Triangle
Creates black Triangle with the 3-element Vec array.
Triangle(Vec, Vec, Vec, Color)
- Constructor for class
Triangle
Creates colored Triangle with the three given vertices
toString()
- Method in class
Mat
Lists all 16 elements of the matrix.
toString()
- Method in class
Triangle
Lists the three vertices
toString()
- Method in class
Vec
Lists the x, y, and z elements of vec.
transMat(double, double, double)
- Static method in class
Mat
Creates a translation matrix with displacements tx, ty, tz.
transformTriangle(Mat, Triangle)
- Static method in class
Triangle
Produces a copy of the triangle after a linear transform is applied.
transformTriangleSame(Mat)
- Method in class
Triangle
Alters this triangle by applying a linear transform is applied.
tri
- Variable in class
Triangle
The three vertices
V
Vec
- class
Vec
.
Represents homogeneous coords point in 3D, plus algebra.
Vec()
- Constructor for class
Vec
Creates 0.0 vector with homogeneous, vec[3], coord = 1.0.
Vec(double, double, double)
- Constructor for class
Vec
Creates vector with the three argument values and vec[3] = 1.0.
vec
- Variable in class
Vec
The only (non-static) field, a 4-element array.
vecDiff(Vec, Vec)
- Static method in class
Vec
Difference of two vectors, a static method.
vecSum(Vec, Vec)
- Static method in class
Vec
Sum of two vectors, a static method.
C
D
E
I
L
M
N
O
P
R
S
T
V
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes