interface IBounds {
    max: XYCoords;
    min: XYCoords;
    randomPoint: ((horizontalSafeArea?, verticalSafeArea?) => Vertex);
    getCenter(): Vertex;
}

Implemented by

Properties

Methods

Properties

The lower right position;.

The upper left position.

randomPoint: ((horizontalSafeArea?, verticalSafeArea?) => Vertex)

Generate a random point inside this bounds object. Safe areas at the border to avoid included.

Type declaration

    • (horizontalSafeArea?, verticalSafeArea?): Vertex
    • Parameters

      • Optional horizontalSafeArea: number
      • Optional verticalSafeArea: number

      Returns Vertex

Method

randomPoint

Returns

A pseudo random point inside these bounds.

Methods

Generated using TypeDoc