|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.javagl.swogl.geometry.DefaultBox
public class DefaultBox
A simple implementation of a Box
Constructor Summary | |
---|---|
DefaultBox()
Creates a new box |
|
DefaultBox(Box other)
Creates a new box as a copy of the given one |
|
DefaultBox(float minX,
float minY,
float minZ,
float maxX,
float maxY,
float maxZ)
Creates a new box with the given size |
Method Summary | |
---|---|
void |
combine(Box other)
Combines this box with another box |
void |
combine(float x,
float y,
float z)
Combines this box with the given point |
void |
combine(javax.vecmath.Point3f point)
Combines this box with the given point |
void |
getCenter(javax.vecmath.Tuple3f center)
Stores in the given tuple the center of this box |
void |
getMax(javax.vecmath.Tuple3f max)
Stores in the given tuple the maximum point of this box |
float |
getMaxX()
Returns the maximum x value of this box |
float |
getMaxY()
Returns the maximum y value of this box |
float |
getMaxZ()
Returns the maximum z value of this box |
void |
getMin(javax.vecmath.Tuple3f min)
Stores in the given tuple the minimum point of this box |
float |
getMinX()
Returns the minimum x value of this box |
float |
getMinY()
Returns the minimum y value of this box |
float |
getMinZ()
Returns the minimum z value of this box |
float |
getSizeX()
Returns the size of this box in x direction |
float |
getSizeY()
Returns the size of this box in y direction |
float |
getSizeZ()
Returns the size of this box in z direction |
void |
setMax(javax.vecmath.Point3f max)
Set the maximum point of this BoundinBox |
void |
setMaxX(float maxX)
Set the maximum x value of this box |
void |
setMaxY(float maxY)
Set the maximum y value of this box |
void |
setMaxZ(float maxZ)
Set the maximum z value of this box |
void |
setMin(javax.vecmath.Point3f min)
Set the minimum point of this BoundinBox |
void |
setMinX(float minX)
Set the minimum x value of this box |
void |
setMinY(float minY)
Set the minimum y value of this box |
void |
setMinZ(float minZ)
Set the minimum z value of this box |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultBox()
public DefaultBox(float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
minX
- The minimum x value of this boxminY
- The minimum y value of this boxminZ
- The minimum z value of this boxmaxX
- The maximum x value of this boxmaxY
- The maximum y value of this boxmaxZ
- The maximum z value of this boxpublic DefaultBox(Box other)
other
- The box that serves as input for thisMethod Detail |
---|
public float getMinX()
Box
getMinX
in interface Box
public void setMinX(float minX)
minX
- The minimum x value of this boxpublic float getMinY()
Box
getMinY
in interface Box
public void setMinY(float minY)
minY
- The minimum y value of this boxpublic float getMinZ()
Box
getMinZ
in interface Box
public void setMinZ(float minZ)
minZ
- The minimum z value of this boxpublic float getMaxX()
Box
getMaxX
in interface Box
public void setMaxX(float maxX)
maxX
- The maximum x value of this boxpublic float getMaxY()
Box
getMaxY
in interface Box
public void setMaxY(float maxY)
maxY
- The maximum y value of this boxpublic float getMaxZ()
Box
getMaxZ
in interface Box
public void setMaxZ(float maxZ)
maxZ
- The maximum z value of this boxpublic void getMin(javax.vecmath.Tuple3f min)
Box
getMin
in interface Box
min
- The minimum point of this boxpublic void setMin(javax.vecmath.Point3f min)
min
- The minimum point of this BoundinBoxpublic void getMax(javax.vecmath.Tuple3f max)
Box
getMax
in interface Box
max
- The maximum point of this boxpublic void setMax(javax.vecmath.Point3f max)
max
- The maximum point of this BoundinBoxpublic float getSizeX()
Box
getSizeX
in interface Box
public float getSizeY()
Box
getSizeY
in interface Box
public float getSizeZ()
Box
getSizeZ
in interface Box
public void getCenter(javax.vecmath.Tuple3f center)
Box
getCenter
in interface Box
center
- The center of this boxpublic void combine(javax.vecmath.Point3f point)
point
- The point this box should be combined withpublic void combine(Box other)
other
- The box this box should be combined withpublic void combine(float x, float y, float z)
x
- The x coordinate of the pointy
- The y coordinate of the pointz
- The z coordinate of the pointpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |