Skip to content

Geom.rectangle()

Description

A 2D Rectangle constructed in the XOY plane, with its center at [0,0,0].

Syntax

JS
Geom.rectangle(a: Number, b: Number) -> Shape

Parameters

Parameter Type Default Value Mandatory Description
a Number ✅ Side of the rectangle along X
b Number ✅ Yes Side of the rectangle along Y

Return value

Type Description
Shape An object of type Shape, representing a rectangle.

Example

JS
let s = Geom.rectangle(300, 200);
console.info(s) // output:

Also See

Last update: 14 August 2025, 18:47