jspsych/plugins/jspsych-rdk.js
//Function to check if dot is out of bounds

Function to check if dot is out of bounds
Function to check if dot is out of bounds
function outOfBounds(dot) {
			if (apertureType == 1 || apertureType == 2) {
				if (dot.x < xValueNegative(dot.y) || dot.x > xValuePositive(dot.y) || dot.y < yValueNegative(dot.x) || dot.y > yValuePositive(dot.x)) {
					return true;
				} else {
					return false;
				}
			}
			if (apertureType == 3 || apertureType == 4) {
				if (dot.x < (apertureCenterX) - horizontalAxis || dot.x > (apertureCenterX) + horizontalAxis || dot.y < (apertureCenterY) - verticalAxis || dot.y > (apertureCenterY) + verticalAxis) {
					return true;
				} else {
					return false;
				}
			}
		}
function outOfBounds ( dot ) { if ( apertureType == 1 || apertureType == 2 ) { if ( dot . x < xValueNegative ( dot . y ) || dot . x > xValuePositive ( dot . y ) || dot . y < yValueNegative ( dot . x ) || dot . y > yValuePositive ( dot . x ) ) { return true ; } else { return false ; } } if ( apertureType == 3 || apertureType == 4 ) { if ( dot . x < ( apertureCenterX ) - horizontalAxis || dot . x > ( apertureCenterX ) + horizontalAxis || dot . y < ( apertureCenterY ) - verticalAxis || dot . y > ( apertureCenterY ) + verticalAxis ) { return true ; } else { return false ; } } }
Function to check if dot is out of bounds
Function to check if dot is out of bounds
//For circle and ellipse
 //For square and rectangle
