Options
All
  • Public
  • Public/Protected
  • All
Menu

A SpawnShape that randomly picks locations inside a rectangle.

Example config:

{
type: 'rect',
data: {
x: 0,
y: 0,
w: 10,
h: 100
}
}

Hierarchy

  • Rectangle

Implements

Index

Constructors

Properties

Methods

Constructors

  • new Rectangle(config: { h: number; w: number; x: number; y: number }): Rectangle
  • Parameters

    • config: { h: number; w: number; x: number; y: number }
      • h: number

        Height of the rectangle.

      • w: number

        Width of the rectangle.

      • x: number

        X (left) position of the rectangle.

      • y: number

        Y (top) position of the rectangle.

    Returns Rectangle

Properties

h: number

Height of the rectangle.

w: number

Width of the rectangle.

x: number

X (left) position of the rectangle.

y: number

Y (top) position of the rectangle.

editorConfig: ObjectProperty = null
type: string = 'rect'

Methods

Generated using TypeDoc