Plane
A flat rectangular 3D plane.
Usage
ts
import { createPlane } from '@ripl/3d';
const plane = createPlane({
width: 4,
height: 3,
fillStyle: '#88cc44',
});Properties
| Property | Type | Default | Description |
|---|---|---|---|
width | number | — | Width of the plane |
height | number | — | Height of the plane |
x | number | 0 | X position |
y | number | 0 | Y position |
z | number | 0 | Z position |
rotationX | number | 0 | Rotation around X axis (radians) |
rotationY | number | 0 | Rotation around Y axis (radians) |
rotationZ | number | 0 | Rotation around Z axis (radians) |