|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttoxi.geom.YAxisCylinder
public class YAxisCylinder
Constructor Summary | |
---|---|
YAxisCylinder(Vec3D pos,
float radius,
float length)
|
Method Summary | |
---|---|
boolean |
containsPoint(Vec3D p)
Checks if the given point is inside the cylinder. |
float |
getLength()
|
Vec3D.Axis |
getMajorAxis()
|
Vec3D |
getPosition()
Returns the cylinder's position (centroid). |
float |
getRadius()
|
void |
setLength(float length)
|
void |
setPosition(Vec3D pos)
|
void |
setRadius(float radius)
|
TriangleMesh |
toMesh()
Builds a TriangleMesh representation of the cylinder at a default resolution 30 degrees. |
TriangleMesh |
toMesh(int steps,
float thetaOffset)
Builds a TriangleMesh representation of the cylinder using the given number of steps and start angle offset. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public YAxisCylinder(Vec3D pos, float radius, float length)
Method Detail |
---|
public boolean containsPoint(Vec3D p)
AxisAlignedCylinder
containsPoint
in interface AxisAlignedCylinder
public float getLength()
getLength
in interface AxisAlignedCylinder
public Vec3D.Axis getMajorAxis()
getMajorAxis
in interface AxisAlignedCylinder
public Vec3D getPosition()
AxisAlignedCylinder
getPosition
in interface AxisAlignedCylinder
public float getRadius()
getRadius
in interface AxisAlignedCylinder
public void setLength(float length)
setLength
in interface AxisAlignedCylinder
length
- the length to setpublic void setPosition(Vec3D pos)
setPosition
in interface AxisAlignedCylinder
pos
- the pos to setpublic void setRadius(float radius)
setRadius
in interface AxisAlignedCylinder
public TriangleMesh toMesh()
AxisAlignedCylinder
toMesh
in interface AxisAlignedCylinder
public TriangleMesh toMesh(int steps, float thetaOffset)
AxisAlignedCylinder
toMesh
in interface AxisAlignedCylinder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |