function projectPatientPointToImagePlane(patientPoint, imagePlane) {
  var rowCosines = (0, _convertToVector2.default)(imagePlane.rowCosines);
  var columnCosines = (0, _convertToVector2.default)(imagePlane.columnCosines);
  var imagePositionPatient = (0, _convertToVector2.default)(imagePlane.imagePositionPatient);
  var point = patientPoint.clone().sub(imagePositionPatient);
  var x = rowCosines.dot(point) / imagePlane.columnPixelSpacing;
  var y = columnCosines.dot(point) / imagePlane.rowPixelSpacing;

  return {
    x: x,
    y: y
  };
}
// Projects a patient point to an image point
Projects a patient point to an image point
Projects a patient point to an image point
function projectPatientPointToImagePlane(patientPoint, imagePlane) {
  var rowCosines = (0, _convertToVector2.default)(imagePlane.rowCosines);
  var columnCosines = (0, _convertToVector2.default)(imagePlane.columnCosines);
  var imagePositionPatient = (0, _convertToVector2.default)(imagePlane.imagePositionPatient);
  var point = patientPoint.clone().sub(imagePositionPatient);
  var x = rowCosines.dot(point) / imagePlane.columnPixelSpacing;
  var y = columnCosines.dot(point) / imagePlane.rowPixelSpacing;
  return {
    x: x,
    y: y
  };
}
function projectPatientPointToImagePlane ( patientPoint , imagePlane ) { var rowCosines = ( 0 , _convertToVector2 . default ) ( imagePlane . rowCosines ) ; var columnCosines = ( 0 , _convertToVector2 . default ) ( imagePlane . columnCosines ) ; var imagePositionPatient = ( 0 , _convertToVector2 . default ) ( imagePlane . imagePositionPatient ) ; var point = patientPoint . clone ( ) . sub ( imagePositionPatient ) ; var x = rowCosines . dot ( point ) / imagePlane . columnPixelSpacing ; var y = columnCosines . dot ( point ) / imagePlane . rowPixelSpacing ; return { x : x , y : y } ; }
Projects a patient point to an image point
Projects a patient point to an image point