[][src]Module tray_rust::geometry::rectangle

Defines a rectangle centered at the origin, specified by its horizontal and vertical lengths

Scene Usage Example

The rectangle takes two parameters, specifying its width and height. The rectangle will be centered at the origin and will have its normal facing along [0, 0, 1]

"geometry": {
    "type": "rectangle",
    "width": 1.2,
    "height" 2.5
}

Structs

Rectangle

A rectangle centered at the origin spanning [-width / 2, -height / 2] to [width / 2, height / 2] with a normal along [0, 0, 1]