Skip to content

@bloopjs/toodle


@bloopjs/toodle / scene/SceneNode / Bounds

Type Alias: Bounds

Bounds = object

Defined in: scene/SceneNode.ts:638

Bounds represent a bounding box of a rectangle in world space

Properties

bottom

bottom: number

Defined in: scene/SceneNode.ts:658

for an axis-aligned rectangle, bottom is the bottom edge. for a rotated rectangle, it is the bottommost point


left

left: number

Defined in: scene/SceneNode.ts:648

for an axis-aligned rectangle, left is the left edge. for a rotated rectangle, it is the leftmost point


right: number

Defined in: scene/SceneNode.ts:653

for an axis-aligned rectangle, right is the right edge. for a rotated rectangle, it is the rightmost point


top

top: number

Defined in: scene/SceneNode.ts:643

for an axis-aligned rectangle, top is the top edge. for a rotated rectangle, it is the topmost point


x

x: number

Defined in: scene/SceneNode.ts:662

the center x of the node in world space


y

y: number

Defined in: scene/SceneNode.ts:666

the center y of the node in world space