Represents a cone defined by a base radius, a top radius, the length, the orientation and the location of the base center.
More...
|
| AXOM_HOST_DEVICE | Cone () |
| | Default constructor constructs a cone with lengh 1, base radius 1 and top radius 0, at the origin, oriented along the first spatial direction. More...
|
| |
| AXOM_HOST_DEVICE | Cone (T baseRadius, T topRadius, T length) |
| | Construct a cone with a base center at the origin, oriented along the first axis. More...
|
| |
| AXOM_HOST_DEVICE | Cone (T baseRadius, T topRadius, T length, const VectorType &direction, const PointType &baseCenter) |
| | Construct a cone at an arbitrary position and orientation. More...
|
| |
| AXOM_HOST_DEVICE T | getBaseRadius () const |
| | Return the radius at the base. More...
|
| |
| AXOM_HOST_DEVICE T | getTopRadius () const |
| | Return the radius at the top. More...
|
| |
| AXOM_HOST_DEVICE T | getLength () const |
| | Return the length from base to top. More...
|
| |
| AXOM_HOST_DEVICE const PointType & | getBaseCenter () const |
| | Return the coordinates of the base center. More...
|
| |
| AXOM_HOST_DEVICE const VectorType & | getDirection () const |
| | Return the axis direction. More...
|
| |
| AXOM_HOST_DEVICE double | getRadiusAt (double z) const |
| | Return the interpolated/extrapolated radius at a given distance from the base in the direction of getDirection(). More...
|
| |
| std::ostream & | print (std::ostream &os) const |
| | Simple formatted print of a cone instance. More...
|
| |
| template<int TDIM = NDIMS> |
| AXOM_HOST_DEVICE std::enable_if< TDIM==3, T >::type | volume () const |
| | Returns the signed volume of the cone, which is negative if the length is negative. More...
|
| |
template<typename T, int NDIMS>
class axom::primal::Cone< T, NDIMS >
Represents a cone defined by a base radius, a top radius, the length, the orientation and the location of the base center.
- Template Parameters
-
| T | the coordinate type, e.g., double, float, etc. |
| NDIMS | the number of spatial dimensions |
Negative length is allowed and leads to negative volume. Radii must be non-negative.
A cylinder can be represented using equal base and top radii.