|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjme.math.Rectangle
Rectangle
defines a finite plane with an origin point and
two edge directions that defines it's extents.
Constructor Summary | |
Rectangle()
Constructor instantiates a new Rectangle object. |
|
Rectangle(Vector origin,
Vector firstEdge,
Vector secondEdge)
Constructor instantiates a new Rectangle object. |
Method Summary | |
Vector |
getFirstEdge()
getFirstEdge returns the first extent vector. |
Vector |
getOrigin()
getOrigin returns the origin point of the rectangle. |
Vector |
getSecondEdge()
getSecondEdge returns the second extent vector. |
void |
setFirstEdge(Vector firstEdge)
setFirstEdge sets the first extent vector. |
void |
setOrigin(Vector origin)
setOrigin sets the origin point of the rectangle. |
void |
setSecondEdge(Vector secondEdge)
setSecondEdge sets the second edge vector. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Rectangle()
Rectangle
object. All values
origin, firstEdge and secondEdge are (0, 0, 0).
public Rectangle(Vector origin, Vector firstEdge, Vector secondEdge)
Rectangle
object. The
attributes of the rectangle are defined during construction.
origin
- the point defining the least point of the rectange.firstEdge
- the first extent.secondEdge
- the second extent.Method Detail |
public Vector getFirstEdge()
getFirstEdge
returns the first extent vector.
public void setFirstEdge(Vector firstEdge)
setFirstEdge
sets the first extent vector.
firstEdge
- the new first vector edge.public Vector getOrigin()
getOrigin
returns the origin point of the rectangle.
public void setOrigin(Vector origin)
setOrigin
sets the origin point of the rectangle.
origin
- the new origin of the rectangle.public Vector getSecondEdge()
getSecondEdge
returns the second extent vector.
public void setSecondEdge(Vector secondEdge)
setSecondEdge
sets the second edge vector.
secondEdge
- the new second edge vector.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |