net.java.dev.joode.graphics2D
Class BoundLine

java.lang.Object
  extended by net.java.dev.joode.graphics2D.BoundLine
All Implemented Interfaces:
Drawable2D

public class BoundLine
extends java.lang.Object
implements Drawable2D

A bound line draws a straight line between two coordinates

Author:
s0570397

Constructor Summary
BoundLine(Vector3 a, Matrix3 rot, Vector3 b)
          A bound line The three arguments passed in define a relative form of determining the line end points the x,y ordinates of a define the start coord b is measured relative to a after a rotation by rot thus the 2nd coordinates in absolute is = rot*b + a
BoundLine(Vector3 a, Vector3 b)
          creates a line where a and b are considered both to be in absolute coordinates
 
Method Summary
 void draw(java.awt.Graphics2D g)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoundLine

public BoundLine(Vector3 a,
                 Matrix3 rot,
                 Vector3 b)
A bound line The three arguments passed in define a relative form of determining the line end points the x,y ordinates of a define the start coord b is measured relative to a after a rotation by rot thus the 2nd coordinates in absolute is = rot*b + a

Parameters:
a -
b -
c -

BoundLine

public BoundLine(Vector3 a,
                 Vector3 b)
creates a line where a and b are considered both to be in absolute coordinates

Parameters:
a -
b -
Method Detail

draw

public void draw(java.awt.Graphics2D g)
Specified by:
draw in interface Drawable2D