PlaneShape
A surface in the local XZ plane facing +Y. The negative-Y half-space is inside.
Usageโ
import {PlaneShape} from '@math.gl/geometry/culling';
const shape = new PlaneShape({sizeX: 4, sizeZ: 3});
Constructorโ
new PlaneShape(options?)โ
| Option | Default | Description |
|---|---|---|
sizeX | undefined | Optional finite positive width along X. |
sizeZ | undefined | Optional finite positive width along Z. |
matrix | identity | Optional invertible affine local-to-world matrix. |
The dimensions restrict ray hits on the surface, not the inside half-space. Omitted dimensions are unbounded. getAxisAlignedBoundingBox() and getBoundingSphere() return undefined, even when both surface dimensions are finite.
Queriesโ
Implements the Shape interface, including containment, distance, ray and plane intersection, transforms, cloning, and enclosing bounds.
Dimensions and defaults align with the glTF 2.1 draft shape specification.