17 #ifndef AGXCOLLIDE_LINE_H
18 #define AGXCOLLIDE_LINE_H
69 virtual agx::Real getVolume()
const override;
81 void setSecondPoint(
const agx::Vec3& p );
100 virtual bool hasSupportFunction()
const override;
107 virtual agx::Vec3 getSupportPoint(
const agx::Vec3& supportDirection )
const override;
120 virtual const BoundingAABB& updateBoundingVolume()
override;
126 virtual BoundingAABB calculateLocalBound()
const override;
142 virtual ~
Line(
void );
agx::Physics::Geometry::ShapeRef m_entity
static BoundingAABB calculateBound(const agx::AffineMatrix4x4 &transform, const agx::Vec3 &firstPoint, const agx::Vec3 &secondPoint)
Calculate a bounding volume for line shape from parameters.
void AGXCORE_EXPORT transform(void *target, const Format *targetFormat, const void *source, const Format *sourceFormat, size_t numElements)
Transform data between two buffers.
#define AGXPHYSICS_EXPORT
agx::Physics::Geometry::LinePtr getEntity() const
AGXPHYSICS_EXPORT agx::Line & line()
A line shape for intersection tests, mostly for depth sensing and picking.
The geometry representation used by the collision detection engine.
Specialized type of matrices for holding symmetric positive definite matrices.
Pointer to a entity instance of type Physics.Geometry.Line.
agx::Vec3 getFirstPoint() const
Returns the first point, in local coordinates.
agx::Vec3 getSecondPoint() const
Returns the second point, in local coordinates.
static Vec3T componentMax(const Vec3T &v1, const Vec3T &v2)
Creates a new vector where each component is the maximum of this and the other vector.
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Axis aligned bounding box implementation.
AGX_DECLARE_POINTER_TYPES(SpaceListener)
AGXCORE_EXPORT EntityModel * getEntity(const agx::Path &path)
Get a entity with a specified path.
static Vec3T componentMin(const Vec3T &v1, const Vec3T &v2)
Creates a new vector where each component is the minimum of this and the other vector.