141 static
agx::Real computeTruncatedHeight(
agx::Real topRadius,
agx::Real bottomRadius,
agx::Real height );
164 return getEntity().topRadius();
169 return getEntity().bottomRadius();
174 return getEntity().height();
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
#define AGXPHYSICS_EXPORT
Axis aligned bounding box implementation.
A right circular cone shape for geometric intersection tests.
agx::Real getTruncatedHeight() const
virtual BoundingAABB calculateLocalBound() const override
Calculate the bounding volume in the local coordinate system.
virtual agx::Real getVolume() const override
Calculate the volume of this cylinder.
Cone(agx::Real topRadius, agx::Real bottomRadius, agx::Real height)
Creates a cone.
virtual bool hasSupportFunction() const override
agx::SPDMatrix3x3 calculateInertia(agx::Real mass) const override
Calculate the inertia of the Cone.
virtual const BoundingAABB & updateBoundingVolume() override
Calculate the bounding volume based on the current Shape parameters including transformation.
agx::Real getAngle() const
virtual agx::Vec3 getCenter() const override
virtual agx::Vec3 getSupportPoint(const agx::Vec3 &supportDirection) const override
Returns the support point on face of the shape.
void set(agx::Real topRadius, agx::Real bottomRadius, agx::Real height)
Sets all parameters for the cone.
void setHeight(agx::Real height)
Sets the height of the cone.
void setTopRadius(agx::Real r)
Sets the top radius for the cone.
virtual Shape * clone() const override
Create a clone.
void setBottomRadius(agx::Real r)
Sets the bottom radius for the cone.
The geometry representation used by the collision detection engine.
Specialized type of matrices for holding symmetric positive definite matrices.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
This namespace consists of a set of classes for handling geometric intersection tests including boole...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.