BoundingBox2d
Hierarchy
WrappingObj
<Bnd_Box2d
>↳
BoundingBox2d
Constructors
constructor
• new BoundingBox2d(wrapped?
)
Parameters
Name | Type |
---|---|
wrapped? | Bnd_Box2d |
Overrides
Defined in
Accessors
bounds
• get
bounds(): [Point2D
, Point2D
]
Returns
Defined in
center
• get
center(): Point2D
Returns
Defined in
height
• get
height(): number
Returns
number
Defined in
repr
• get
repr(): string
Returns
string
Defined in
width
• get
width(): number
Returns
number
Defined in
wrapped
• get
wrapped(): Type
Returns
Type
Inherited from
WrappingObj.wrapped
Defined in
• set
wrapped(newWrapped
): void
Parameters
Name | Type |
---|---|
newWrapped | Type |
Returns
void
Inherited from
WrappingObj.wrapped
Defined in
Methods
add
▸ add(other
): void
Parameters
Name | Type |
---|---|
other | BoundingBox2d |
Returns
void
Defined in
containsPoint
▸ containsPoint(other
): boolean
Parameters
Name | Type |
---|---|
other | Point2D |
Returns
boolean
Defined in
delete
▸ delete(): void
Returns
void
Inherited from
Defined in
isOut
▸ isOut(other
): boolean
Parameters
Name | Type |
---|---|
other | BoundingBox2d |
Returns
boolean
Defined in
outsidePoint
▸ outsidePoint(paddingPercent?
): Point2D
Parameters
Name | Type | Default value |
---|---|---|
paddingPercent | number | 1 |