lab4
Class DemoVectorTest
java.lang.Object
lab4.DemoVectorTest
public class DemoVectorTest
- extends java.lang.Object
Official CSE131 Lab 4 Vector JUnit test.
Demo this to get credit, but
turn in your own tests as well.
- Author:
- cytron
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DemoVectorTest
public DemoVectorTest()
init
public void init()
arith
public void arith()
gx
public double gx(Vector v)
- Why did I write this method?
- Parameters:
v - a vector
- Returns:
- v's x component
gy
public double gy(Vector v)
- Parameters:
v - a vector
- Returns:
- v's y component
compare
public void compare(double one,
double other)
- Why did I write this method?
- Parameters:
one - one of two doubles to compareother - other of two doubles to compare
scale
public void scale()
rescale
public void rescale()
specialCases
public void specialCases()