Assert a shape is 2D. Throws at runtime if wrong. Use when you know the shape is 2D but TypeScript doesn't.
Assert a shape is 2D. Throws at runtime if wrong. Use when you know the shape is 2D but TypeScript doesn't.