Public
Edited
Feb 4
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
function getAdjustedKeepouts({dR_T=0, dA_T=0, dR_P=0, dA_P=0, R1=0, R2=0, R1_nom=3, R2_nom=3}={}) {
let { theta, phi } = nominal;
theta = expandedRadially(theta, dR_T);
theta = expandedAngularly(theta, dA_T);
phi = expandedRadially(phi, dR_P);
phi = expandedAngularly(phi, dA_P);
const R1_error = R1 - R1_nom; // preserve sign
const R2_error = Math.max(R2 - R2_nom, 0); // only expand phi
phi = translated(phi, R1_error, 0);
phi = expanded_x(phi, R1_error, R2_error);
return { theta, phi };
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more