| 438 | } |
| 439 | |
| 440 | void mitk::BaseGeometry::WorldToIndex(const mitk::Point3D &pt_mm, mitk::Point3D &pt_units) const |
| 441 | { |
| 442 | mitk::Vector3D tempIn, tempOut; |
| 443 | const TransformType::OffsetType &offset = this->GetIndexToWorldTransform()->GetOffset(); |
| 444 | tempIn = pt_mm.GetVectorFromOrigin() - offset; |
| 445 | |
| 446 | WorldToIndex(tempIn, tempOut); |
| 447 | |
| 448 | pt_units = Point3D(tempOut); |
| 449 | } |
| 450 | |
| 451 | void mitk::BaseGeometry::WorldToIndex(const mitk::Vector3D &vec_mm, mitk::Vector3D &vec_units) const |
| 452 | { |