|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.proteinshader.math.LocalFrameDemo
public class LocalFrameDemo
Performs some simple tests on the LocalFrame class.
Field Summary | |
---|---|
static int |
BANNER_WIDTH
The banner width is the number of asterisks to print on the line line above or below a banner title. |
Constructor Summary | |
---|---|
LocalFrameDemo()
Creates a LocalFrameDemo object with a few Quaternion objects that can be used for testing purposes. |
Method Summary | |
---|---|
String |
createRepeats(char ch,
int n)
Returns a String with the character given as an argument repeated n number of times. |
static void |
main(String[] args)
Tests the constructors, setter methods, and multiply(Point3d) methods of the LocalFrame class. |
void |
printBanner(String title,
String message)
Prints a banner with a row of asterisks above and below the title, and then a message right below the banner. |
void |
test2ArgConstructor()
Uses a rotation quaternion and a translation vector to create a LocalFrame and then prints the LocalFrame by using its toString() method. |
void |
test6ArgConstructor()
Uses a matrix of 3 column vectors, [N B T], and 3 doubles (x, y, z) to create a LocalFrame and then prints the LocalFrame. |
void |
test7ArgConstructor()
Uses xyzw-values for a quaternion and xyz-values for a translation vector to create a LocalFrame and then prints the LocalFrame. |
void |
testMultiplyPointMethod()
Tests the multiply(Point3d) method of LocalFrame. |
void |
testSetRotationMethods()
Creates a LocalFrame with the zero-arg constructor and then tests the setRotation() methods. |
void |
testSetTranslationMethods()
Creates a LocalFrame with the zero-arg constructor and then tests the setTranslation() methods. |
void |
testZeroArgConstructor()
Uses the zero-argument constructor to create and then print a LocalFrame. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int BANNER_WIDTH
Constructor Detail |
---|
public LocalFrameDemo()
Method Detail |
---|
public void test2ArgConstructor()
public void test6ArgConstructor()
public void test7ArgConstructor()
public void testZeroArgConstructor()
public void testSetRotationMethods()
public void testSetTranslationMethods()
public void testMultiplyPointMethod()
public void printBanner(String title, String message)
title
- the title to place in the banner.message
- a message to print right below the banner.public String createRepeats(char ch, int n)
ch
- the char to repeat.n
- the number of times to repeat ch.
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |