Skip to main content

Class: BoundingBox2d

Hierarchy

Constructors

constructor

new BoundingBox2d(wrapped?)

Parameters

NameType
wrapped?Bnd_Box2d

Overrides

WrappingObj.constructor

Defined in

lib2d.ts:26

Accessors

bounds

get bounds(): [Point2D, Point2D]

Returns

[Point2D, Point2D]

Defined in

lib2d.ts:40


center

get center(): Point2D

Returns

Point2D

Defined in

lib2d.ts:54


height

get height(): number

Returns

number

Defined in

lib2d.ts:64


repr

get repr(): string

Returns

string

Defined in

lib2d.ts:35


width

get width(): number

Returns

number

Defined in

lib2d.ts:59


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.ts:80


containsPoint

containsPoint(other): boolean

Parameters

NameType
otherPoint2D

Returns

boolean

Defined in

lib2d.ts:88


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.ts:84


outsidePoint

outsidePoint(paddingPercent?): Point2D

Parameters

NameTypeDefault value
paddingPercentnumber1

Returns

Point2D

Defined in

lib2d.ts:69