Skip to content

Plane

A flat rectangular 3D plane.

Usage

ts
import { createPlane } from '@ripl/3d';

const plane = createPlane({
    width: 4,
    height: 3,
    fillStyle: '#88cc44',
});

Properties

PropertyTypeDefaultDescription
widthnumberWidth of the plane
heightnumberHeight of the plane
xnumber0X position
ynumber0Y position
znumber0Z position
rotationXnumber0Rotation around X axis (radians)
rotationYnumber0Rotation around Y axis (radians)
rotationZnumber0Rotation around Z axis (radians)

Demo