threejs-worldgen
    Preparing search index...

    Interface OrientedBox

    An oriented rectangle: centre, unit long axis, and half extents along the long and short axes.

    interface OrientedBox {
        axis: Vec2;
        center: Vec2;
        halfLength: number;
        halfWidth: number;
    }
    Index
    axis: Vec2

    Unit vector along the long side.

    center: Vec2

    Centre.

    halfLength: number

    Half length along axis.

    halfWidth: number

    Half width across axis.