Abstract base class for all kinds of 2d shapes.

Hierarchy (View Summary)

Constructors

Properties

_boundingBoxNeedsUpdate: boolean

Accessors

  • get boundingBoxNeedUpdate(): boolean
  • When this is set, it calculates the bounding box of this shape and resets this property to false. Default is false.

    Returns boolean

  • get box(): AcGeBox2d
  • The bounding box of this shape. Because it is a time-consuming operation to calculate the bounding box of one shape, the bounding box value is cached. It will be calculated again lazily once there are any changes to properties of this shape.

    Returns AcGeBox2d

Methods

  • Return true if this shape contains the specified shape

    Returns AcGeBox2d

  • Transforms the entity by applying the input matrix.

    Parameters

    Returns this

  • Return new shape translated by given vector.

    Parameters

    Returns this