Skip to main content

BoundingBox2d

Hierarchy​

Constructors​

constructor​

• new BoundingBox2d(wrapped?)

Parameters​

NameType
wrapped?Bnd_Box2d

Overrides​

WrappingObj.constructor

Defined in​

lib2d/BoundingBox2d.ts:10

Accessors​

bounds​

• get bounds(): [Point2D, Point2D]

Returns​

[Point2D, Point2D]

Defined in​

lib2d/BoundingBox2d.ts:24


center​

• get center(): Point2D

Returns​

Point2D

Defined in​

lib2d/BoundingBox2d.ts:38


height​

• get height(): number

Returns​

number

Defined in​

lib2d/BoundingBox2d.ts:48


repr​

• get repr(): string

Returns​

string

Defined in​

lib2d/BoundingBox2d.ts:19


width​

• get width(): number

Returns​

number

Defined in​

lib2d/BoundingBox2d.ts:43


wrapped​

• get wrapped(): Type

Returns​

Type

Inherited from​

WrappingObj.wrapped

Defined in​

register.ts:39

• set wrapped(newWrapped): void

Parameters​

NameType
newWrappedType

Returns​

void

Inherited from​

WrappingObj.wrapped

Defined in​

register.ts:44

Methods​

add​

▸ add(other): void

Parameters​

NameType
otherBoundingBox2d

Returns​

void

Defined in​

lib2d/BoundingBox2d.ts:64


containsPoint​

▸ containsPoint(other): boolean

Parameters​

NameType
otherPoint2D

Returns​

boolean

Defined in​

lib2d/BoundingBox2d.ts:72


delete​

▸ delete(): void

Returns​

void

Inherited from​

WrappingObj.delete

Defined in​

register.ts:54


isOut​

▸ isOut(other): boolean

Parameters​

NameType
otherBoundingBox2d

Returns​

boolean

Defined in​

lib2d/BoundingBox2d.ts:68


outsidePoint​

▸ outsidePoint(paddingPercent?): Point2D

Parameters​

NameTypeDefault value
paddingPercentnumber1

Returns​

Point2D

Defined in​

lib2d/BoundingBox2d.ts:53