Contents Up << >>

Formulas

To convert from Master coordinates to World coordinates:
Apply current transformation matrix

To convert from WC to NDC:
X_ndc = X_vmin + (X_vmax - X_vmin) (X_wc - X_wmin) / (X_wmax - X_wmin) Y_ndc = Y_vmin + (Y_vmax - Y_vmin) (Y_wc - Y_wmin) / (Y_wmax - Y_wmin)

To convert from NDC to PDC: X_pdc = X_ndc X_pmax Y_pdc = X_ndc Y_pmax