| 33 | } |
| 34 | |
| 35 | bool mitk::Cuboid::IsInside(const Point3D &worldPoint) const |
| 36 | { |
| 37 | // transform point from world to object coordinates |
| 38 | ScalarType p[4]; |
| 39 | p[0] = worldPoint[0]; |
| 40 | p[1] = worldPoint[1]; |
| 41 | p[2] = worldPoint[2]; |
| 42 | p[3] = 1; |
| 43 | |
| 44 | GetGeometry()->GetVtkTransform()->GetInverse()->TransformPoint(p, p); |
| 45 | |
| 46 | return (p[0] >= -1) && (p[0] <= 1) && (p[1] >= -1) && (p[1] <= 1) && (p[2] >= -1) && (p[2] <= 1); |
| 47 | } |
| 48 | |
| 49 | mitk::ScalarType mitk::Cuboid::GetVolume() |
| 50 | { |
nothing calls this directly
no test coverage detected