Skip to content

Geom.square()

Description

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

Syntax

JS
Geom.square(a: Number) -> Shape

Parameters

Parameter Type Mandatory Description
a Number ✔️ Yes The side of the square

Return value

Type Description
Shape An object of type Shape, a square

Example

JS
let s = Geom.square(100)
console.info(s) // output:

See also

Last update: 15 August 2025, 14:32