17 #ifndef AGXCOLLIDE_PLANE_H
18 #define AGXCOLLIDE_PLANE_H
72 virtual agx::Real getVolume()
const override;
83 void setNormal(
const agx::Vec3& normal );
96 virtual const BoundingAABB& updateBoundingVolume()
override;
97 virtual BoundingAABB calculateLocalBound()
const override;
104 virtual Shape *clone()
const override;
agx::Physics::Geometry::ShapeRef m_entity
void AGXPHYSICS_EXPORT init()
Initialize agx.
agx::Physics::Geometry::PlanePtr getEntity() const
Vec3T< Real > Vec3
The object holding 3 dimensional vectors and providing basic arithmetic.
A class holding 4 dimensional vectors and providing basic arithmetic.
PlaneT< agx::Real > Plane
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
Class representing the mathematical concept of a plane, also called a half- space.
agx::Real signedDistanceToPoint(const agx::Vec3 &point) const
Calculates the distance from the plane to a point.
AGXPHYSICS_EXPORT agx::Plane & plane()
Specialized type of matrices for holding symmetric positive definite matrices.
Pointer to a entity instance of type Physics.Geometry.Plane.
agx::Vec3T< T > getNormal() const
/return The normal of the plane.
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
static BoundingAABB calculateBound(const agx::AffineMatrix4x4 &transform, const agx::Plane &plane)
AGXCORE_EXPORT const Real RealMax
Plane & operator=(const Plane &)
Axis aligned bounding box implementation.
const agx::Vec3 getNormal() const
Get the normal (a, b, c) from plane equation ax+by+cz+d=0.
AGX_DECLARE_POINTER_TYPES(SpaceListener)
AGXCORE_EXPORT EntityModel * getEntity(const agx::Path &path)
Get a entity with a specified path.
agx::Real getDistance() const
Get the distance d (from plane equation ax+by+cz+d=0).