KrisLibrary
1.0.0
|
A 3D cylinder. More...
#include <Cylinder3D.h>
Public Member Functions | |
bool | contains (const Point3D &pt) const |
Real | distance (const Point3D &pt) const |
Real | closestPoint (const Point3D &pt, Point3D &closest) const |
returns distance to closest | |
void | setTransformed (const Cylinder3D &cyl, const RigidTransform &T) |
void | getBase (Circle3D &c) const |
void | getCap (Circle3D &c) const |
void | getAABB (AABB3D &) const |
bool | intersects (const Line3D &line, Real *tmin=NULL, Real *tmax=NULL) const |
Returns the entry/exit points if they intersect. | |
bool | intersects (const Segment3D &seg, Real *tmin=NULL, Real *tmax=NULL) const |
Public Attributes | |
Point3D | center |
Vector3 | axis |
Real | radius |
Real | height |
A 3D cylinder.
The base is centered at center, extruding a circle of the given radius along the axis, for the given height.