src/Input.js
/**
 * A isosceles triangle described as a point in the angle between the isosceles sides and base direction is facing to positive y.
 *
 * @param x0 x position of the point.
 * @param y0 y position of the point.
 * @param minDistance minimum distance from the point that the touch must be.
 * @param distance maximum distance from the point that the touch can be.
 * @param angle the angle in degrees between the isosceles sides.
 * @param directionAngle the angle in degrees of the whole triangle in steps of 90.
 * @param type button type.
 */
A isosceles triangle described as a point in the angle between the isosceles sides and base direction is facing to positive y.
@param x0 x position of the point.
@param y0 y position of the point.
@param minDistance minimum distance from the point that the touch must be.
@param distance maximum distance from the point that the touch can be.
@param angle the angle in degrees between the isosceles sides.
@param directionAngle the angle in degrees of the whole triangle in steps of 90.
@param type button type.
A isosceles triangle described as a point in the angle between the isosceles sides and base direction is facing to positive y . @param x0 x position of the point . @param y0 y position of the point . @param minDistance minimum distance from the point that the touch must be . @param distance maximum distance from the point that the touch can be . @param angle the angle in degrees between the isosceles sides . @param directionAngle the angle in degrees of the whole triangle in steps of 90 . @param type button type .
function GUIIsoscelesTriangle(x0, y0, minDistance, distance, angle, directionAngle, type) {
	assert(directionAngle % 90 == 0);
	assert(angle < 180 && angle > 0);
	assert(minDistance >= 0 && minDistance < distance);
	this.x0 = x0;
	this.y0 = y0;
	this.minD = minDistance;
	this.d = distance;
	this.yMultiplier = Math.tan(angle / 2 * Math.PI / 180);
	this.directionAngle = directionAngle;
	this.type = type;
}
function GUIIsoscelesTriangle ( x0 , y0 , minDistance , distance , angle , directionAngle , type ) { assert ( directionAngle % 90 == 0 ) ; assert ( angle < 180 && angle > 0 ) ; assert ( minDistance >= 0 && minDistance < distance ) ; this . x0 = x0 ; this . y0 = y0 ; this . minD = minDistance ; this . d = distance ; this . yMultiplier = Math . tan ( angle / 2 * Math . PI / 180 ) ; this . directionAngle = directionAngle ; this . type = type ; }
A isosceles triangle described as a point in the angle between the isosceles sides and base direction is facing to positive y.
A isosceles triangle described as a point in the angle between the isosceles sides and base direction is facing to positive y .