Skip to content

Rectangle

A rectangular surface.

Needs a normal for orientation and a tangent vector to define the direction of the length and width. The rectangle is centered at the given center point.

type#

type: Literal['rectangle'] = 'rectangle'

center#

center: list[float]

The center point of the rectangle.

normal#

normal: list[float]

The normal vector of the rectangle.

tangent#

tangent: list[float]

The tangent vector of the rectangle.

The length of the rectangle is along the tangent direction and the width is along the cross product of the normal and tangent.

length#

length: float

The length of the rectangle along the tangent direction.

width#

width: float

The width of the rectangle.

The width is along the cross product of the normal and tangent.