lab4
Class DemoVectorTest

java.lang.Object
  extended by 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

Constructor Summary
DemoVectorTest()
           
 
Method Summary
 void arith()
           
 void compare(double one, double other)
          Why did I write this method?
 double gx(Vector v)
          Why did I write this method?
 double gy(Vector v)
           
 void init()
           
 void rescale()
           
 void scale()
           
 void specialCases()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DemoVectorTest

public DemoVectorTest()
Method Detail

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 compare
other - other of two doubles to compare

scale

public void scale()

rescale

public void rescale()

specialCases

public void specialCases()