KrisLibrary  1.0.0
Public Member Functions | Public Attributes | List of all members
Math3D::Cylinder3D Struct Reference

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
 

Detailed Description

A 3D cylinder.

The base is centered at center, extruding a circle of the given radius along the axis, for the given height.


The documentation for this struct was generated from the following files: