# Class: dgeomccylinder

A capped cylinder is like a normal cylinder except it has half-sphere caps at its ends. This feature makes the internal collision detection code particularly fast and accurate. The cylinder's length, not counting the caps, is given by length. The cylinder is aligned along the geom's local Z axis. The radius of the caps, and of the cylinder itself, is given by radius.

## Hierarchy

    o-+ ode
      o-+ dcollider
        o-+ dgeom
          o-+ dgeomccylinder

## Methods:

### Method overview:

- length
- lenrad
- new
- radius

new ([float r,l],[dspace space])
  returns: (dgeomccylinder)
  Create a capped cylinder geom of the given parameters, and return its ID. If space is nonzero, insert it into that space.
length (dgeomccylinder,[float])
  returns: ([float])
  sets/gets the length of the dgeomccylinder
lenrad (dgeomccylinder,[float rad, float len])
  returns: ([float rad,float len])
  sets/gets the radius and length of the dgeomccylinder
radius (dgeomccylinder,[float])
  returns: ([float])
  sets/gets the radius of the dgeomccylinder

## Inherited Methods:

### From dgeom

body, category, disabledspace, enabledspace, fdirnormal, fdirpriority, getcontactinfo, local2world, matrix, maxcontactinfo, maxcontacts, motion1, motion2, nocontactgenerator, pos, rotaxis, rotdeg, rotquat, rotrad, setcategory, surfaceid, transformer, world2local

### From dcollider

delete, test, testnear, testtriarray