Options
All
  • Public
  • Public/Protected
  • All
Menu
property

{XYCoords} min The upper left position.

property

{XYCoords} max The lower right position;.

Hierarchy

  • IBounds

Implemented by

Index

Properties

Methods

Properties

max

min

randomPoint

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

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

method

randomPoint

param

(optional) The horizonal (left and right) safe area. No vertex will be created here. Can be used as percent in (0.0 ... 0.1) interval.

param

(optional) The vertical (top and bottom) safe area. No vertex will be created here. Can be used as percent in (0.0 ... 0.1) interval

returns

A pseudo random point inside these bounds.

Type declaration

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

      • Optional horizontalSafeArea: number
      • Optional verticalSafeArea: number

      Returns Vertex

Methods

getCenter

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Private property
  • Private method
  • Static property
  • Static method

Generated using TypeDoc