NuTo
Numerics Tool
CollidableWallPhysical.h
Go to the documentation of this file.
1 /*
2  * CollidableWallPhysical.h
3  *
4  * Created on: 5 Feb 2014
5  * Author: ttitsche
6  */
7 
8 #pragma once
9 
11 
12 namespace NuTo
13 {
14 class CollidableParticleSphere;
15 
18 {
19 public:
24  CollidableWallPhysical(Eigen::Vector3d rPosition, Eigen::Vector3d rDirection, int rIndex);
25 
28  void PerformCollision(CollidableParticleSphere& rSphere) override;
29 
33  double PredictCollision(CollidableParticleSphere& rSphere, int& rType) override;
34 
36  bool IsPhysical() const override
37  {
38  return true;
39  }
40 };
41 
42 } /* namespace NuTo */
double PredictCollision(CollidableParticleSphere &rSphere, int &rType) override
collision check between CollidableWall and CollidableSphere, physics here
Definition: CollidableWallPhysical.cpp:30
class for spherical collidables
Definition: CollidableParticleSphere.h:28
bool IsPhysical() const override
returns true
Definition: CollidableWallPhysical.h:36
class for planar physical walls
Definition: CollidableWallPhysical.h:17
void PerformCollision(CollidableParticleSphere &rSphere) override
collision between CollidableWall and CollidableSphere
Definition: CollidableWallPhysical.cpp:18
Definition: Exception.h:6
base class for walls
Definition: CollidableWallBase.h:23
CollidableWallPhysical(Eigen::Vector3d rPosition, Eigen::Vector3d rDirection, int rIndex)
constructor, create CollidableWallBase using the point-and-normal-vector plane definition ...
Definition: CollidableWallPhysical.cpp:13