Skip to content

square

square(center, apothem): number[][]

Return a square rect with center point and apothem

Parameters

center: number[]

center point of square

apothem: number

distance center point to line segment

Returns

number[][]

Source

graphics/geometry.ts:235