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;
127 return ( getNormal() * point ) + getDistance();
void AGXPHYSICS_EXPORT init()
Initialize AGX Dynamics API including thread resources and must be executed before using the AGX API...
Vec3T< Real > Vec3
The object holding 3 dimensional vectors and providing basic arithmetic.
agx::Real getDistance() const
Get the distance d (from plane equation ax+by+cz+d=0).
This namespace consists of a set of classes for handling geometric intersection tests including boole...
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
agx::Real signedDistanceToPoint(const agx::Vec3 &point) const
Calculates the distance from the plane to a point.
Class representing the mathematical concept of a plane, also called a half- space.
Specialized type of matrices for holding symmetric positive definite matrices.
Pointer to a entity instance of type Physics.Geometry.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.
agx::Physics::Geometry::PlanePtr getEntity() const
AGX_DECLARE_POINTER_TYPES(SpaceListener)
AGXCORE_EXPORT EntityModel * getEntity(const agx::Path &path)
Get a entity with a specified path.
const agx::Vec3 getNormal() const
Get the normal (a, b, c) from plane equation ax+by+cz+d=0.