GLOSSQUOTE LABS · CSS GEOMETRY
Perspective Projection Explorer
One rectangle. Two distinct origins. Compare precise numbers, a full schematic and a real browser CSS preview.
01 / Set rotations and viewpoint
Inputs changed. Generate one coherent complete result.
02 / Full projection schematic
Dashed baseline rectangle, solid projected polygon and stable P0–P3 labels. Cross O is rotation origin; diamond Q is perspective origin. Dotted boundary is the native display frame.
03 / Real CSS preview (frame clipped)
The full schematic and AABB are unclipped. The 220×140px native frame displays model window [−10,−10]–[210,130]. Outside corners do not imply the whole face is invisible or the calculation invalid.
04 / Every corner in numbers
Numbers are rounded to six decimal places for display; calculations and classifications use unrounded values.
| ID | original x | original y | X | Y | Z | w | projected x | projected y | frame |
|---|
05 / Selectable CSS
Read the two origins
O is the fixed rectangle rotation origin (100,60,0). Q is the independently movable parent perspective origin; distance is fixed at 500px. CSS rotateX(a) rotateY(b) applies Y first, then X.
The rectangle and parent are 200×120px. Projected coordinates are parent-relative, not screen pixels; do not multiply by DPR. All accepted inputs guarantee w>0.766. Eye-plane crossings are not modeled.
The full schematic and AABB are unclipped. The 220×140px native frame displays model window [−10,−10]–[210,130]. Outside corners do not imply the whole face is invisible or the calculation invalid.
Original input.value is retained; single-line controls may strip CR/LF. ASCII edge spaces, plus signs and leading zeros are allowed within 24 raw characters; CSS is canonicalized. Inputs stay in memory: no upload, storage or clipboard API.
Fixed structure: .preview-frame → .perspective-parent → .projected-rectangle. No animation, WebGL, arbitrary CSS or general 3D renderer. Reload/BFCache restores defaults.
CSS Transforms Level2 · 2021 Working Draft