Open this example in the interactive library
Live preview
Source code
// components/IsometricPointProjection.tsx
export default function IsometricPointProjection({
width = 12,
height = 8,
}: { width?: number; height?: number } = {}) {
return (
<dl>
<dt>Screen X</dt>
<dd>{(width - height) * 0.5}</dd>
<dt>Screen Y</dt>
<dd>{(width + height) * 0.25}</dd>
</dl>
);
}
