tsParticles - v4.0.0-beta.12
    Preparing search index...

    Abstract base class for spatial ranges

    Hierarchy (View Summary)

    Index

    Constructors

    • Internal

      Range constructor, initializes the position

      Parameters

      • x: number

        X coordinate of the position

      • y: number

        Y coordinate of the position

      • type: string

        the range type

      Returns BaseRange

    Properties

    position: ICoordinates

    Range position

    type: string

    The range type identifier

    Methods

    • Updates the internal position values.

      Parameters

      • x: number

        New x coordinate.

      • y: number

        New y coordinate.

      Returns void

    • Check if the point is inside the range

      Parameters

      Returns boolean

      true or false, checking if the given point is inside the current range

    • Check if another range intersects with the current one

      Parameters

      • range: BaseRange

        the range to check the intersection with

      Returns boolean

      true or false, checking if the range is intersecting with the current range