|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.math.Rectangle
Rectangle defines a finite plane within three dimensional space
that is specified via three points (A, B, C). These three points define a
triangle with the forth point defining the rectangle ((B + C) - A.
| Constructor Summary | |
Rectangle()
Constructor creates a new Rectangle with no defined
corners. |
|
Rectangle(Vector3f a,
Vector3f b,
Vector3f c)
Constructor creates a new Rectangle with defined A, B, and
C points that define the area of the rectangle. |
|
| Method Summary | |
Vector3f |
getA()
getA returns the first point of the rectangle. |
Vector3f |
getB()
getB returns the second point of the rectangle. |
Vector3f |
getC()
getC returns the third point of the rectangle. |
Vector3f |
random()
random returns a random point within the plane defined by:
A, B, C, and (B + C) - A. |
void |
setA(Vector3f a)
setA sets the first point of the rectangle. |
void |
setB(Vector3f b)
setB sets the second point of the rectangle. |
void |
setC(Vector3f c)
setC sets the third point of the rectangle. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Rectangle()
Rectangle with no defined
corners. A, B, and C must be set to define a valid rectangle.
public Rectangle(Vector3f a,
Vector3f b,
Vector3f c)
Rectangle with defined A, B, and
C points that define the area of the rectangle.
a - the first corner of the rectangle.b - the second corner of the rectangle.c - the third corner of the rectangle.| Method Detail |
public Vector3f getA()
getA returns the first point of the rectangle.
public void setA(Vector3f a)
setA sets the first point of the rectangle.
a - the first point of the rectangle.public Vector3f getB()
getB returns the second point of the rectangle.
public void setB(Vector3f b)
setB sets the second point of the rectangle.
b - the second point of the rectangle.public Vector3f getC()
getC returns the third point of the rectangle.
public void setC(Vector3f c)
setC sets the third point of the rectangle.
c - the third point of the rectangle.public Vector3f random()
random returns a random point within the plane defined by:
A, B, C, and (B + C) - A.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||