Go to the documentation of this file.
7 #ifndef INCLUDE_JET_COLLIDER_SET3_H_
8 #define INCLUDE_JET_COLLIDER_SET3_H_
43 std::vector<Collider3Ptr> _colliders;
65 std::vector<Collider3Ptr> _colliders;
70 #endif // INCLUDE_JET_COLLIDER_SET3_H_
Vector3D velocityAt(const Vector3D &point) const override
Returns the velocity of the collider at given point.
Front-end to create ColliderSet3 objects step by step.
Definition: collider_set3.h:53
Abstract base class for generic collider object.
Definition: collider3.h:24
void addCollider(const Collider3Ptr &collider)
Adds a collider to the set.
Collider3Ptr collider(size_t i) const
Returns collider at index i.
Builder & withColliders(const std::vector< Collider3Ptr > &others)
Returns builder with other colliders.
Definition: advection_solver2.h:18
std::shared_ptr< ColliderSet3 > ColliderSet3Ptr
Shared pointer for the ColliderSet3 type.
Definition: collider_set3.h:47
ColliderSet3(const std::vector< Collider3Ptr > &others)
Constructs with other colliders.
size_t numberOfColliders() const
Returns number of colliders.
Collection of 3-D colliders.
Definition: collider_set3.h:17
ColliderSet3 build() const
Builds ColliderSet3.
3-D vector class.
Definition: vector3.h:25
static Builder builder()
Returns builder fox ColliderSet3.
ColliderSet3()
Default constructor.
std::shared_ptr< Collider3 > Collider3Ptr
Shared pointer type for the Collider2.
Definition: collider3.h:118
ColliderSet3Ptr makeShared() const
Builds shared pointer of ColliderSet3 instance.