Class: Bounds
Implements
Table of contents
Constructors
Properties
Methods
- set
- copy
- clone
- scale
- toOuterOf
- getFitMatrix
- spread
- ceil
- add
- addList
- setByList
- addListWithHandle
- setByListWithHandle
- setByPoints
- hitPoint
- hitRadiusPoint
- hit
- includes
- intersect
- getIntersect
- isSame
- isEmpty
- reset
Constructors
constructor
new Bounds(x?
, y?
, width?
, height?
)
Parameters
Name | Type |
---|---|
x? | number | IBoundsData |
y? | number |
width? | number |
height? | number |
Defined in
leafer/packages/math/src/Bounds.ts:12
Properties
x
x: number
Implementation of
Defined in
leafer/packages/math/src/Bounds.ts:7
y
y: number
Implementation of
Defined in
leafer/packages/math/src/Bounds.ts:8
width
width: number
Implementation of
Defined in
leafer/packages/math/src/Bounds.ts:9
height
height: number
Implementation of
Defined in
leafer/packages/math/src/Bounds.ts:10
Methods
set
set(x?
, y?
, width?
, height?
): void
Parameters
Name | Type |
---|---|
x? | number |
y? | number |
width? | number |
height? | number |
Returns
void
Implementation of
Defined in
leafer/packages/math/src/Bounds.ts:16
copy
copy(bounds
): IBounds
Parameters
Name | Type |
---|---|
bounds | IBoundsData |
Returns
Implementation of
Defined in
leafer/packages/math/src/Bounds.ts:20
clone
clone(): IBounds
Returns
Implementation of
Defined in
leafer/packages/math/src/Bounds.ts:25
scale
scale(scale
): IBounds
Parameters
Name | Type |
---|---|
scale | number |
Returns
Implementation of
Defined in
leafer/packages/math/src/Bounds.ts:30
toOuterOf
toOuterOf(matrix
, to?
): IBounds
Parameters
Name | Type |
---|---|
matrix | IMatrixData |
to? | IBoundsData |
Returns
Implementation of
Defined in
leafer/packages/math/src/Bounds.ts:35
getFitMatrix
getFitMatrix(put
): IMatrix
Parameters
Name | Type |
---|---|
put | IBoundsData |
Returns
Implementation of
Defined in
leafer/packages/math/src/Bounds.ts:40
spread
spread(size
): IBounds
Parameters
Name | Type |
---|---|
size | number |
Returns
Implementation of
Defined in
leafer/packages/math/src/Bounds.ts:44
ceil
ceil(): IBounds
Returns
Implementation of
Defined in
leafer/packages/math/src/Bounds.ts:49
add
add(bounds
): IBounds
Parameters
Name | Type |
---|---|
bounds | IBoundsData |
Returns
Implementation of
Defined in
leafer/packages/math/src/Bounds.ts:56
addList
addList(boundsList
): IBounds
Parameters
Name | Type |
---|---|
boundsList | IBounds [] |
Returns
Implementation of
Defined in
leafer/packages/math/src/Bounds.ts:61
setByList
setByList(boundsList
, addMode?
): IBounds
Parameters
Name | Type |
---|---|
boundsList | IBounds [] |
addMode? | boolean |
Returns
Implementation of
Defined in
leafer/packages/math/src/Bounds.ts:66
addListWithHandle
addListWithHandle(list
, boundsDataHandle
): IBounds
Parameters
Name | Type |
---|---|
list | IObject [] |
boundsDataHandle | IBoundsDataHandle |
Returns
Implementation of
Defined in
leafer/packages/math/src/Bounds.ts:71
setByListWithHandle
setByListWithHandle(list
, boundsDataHandle
, addMode?
): IBounds
Parameters
Name | Type |
---|---|
list | IObject [] |
boundsDataHandle | IBoundsDataHandle |
addMode? | boolean |
Returns
Implementation of
Defined in
leafer/packages/math/src/Bounds.ts:76
setByPoints
setByPoints(points
): IBounds
Parameters
Name | Type |
---|---|
points | IPointData [] |
Returns
Implementation of
Defined in
leafer/packages/math/src/Bounds.ts:81
hitPoint
hitPoint(point
, pointMatrix?
): boolean
Parameters
Name | Type |
---|---|
point | IPointData |
pointMatrix? | IMatrixData |
Returns
boolean
Implementation of
Defined in
leafer/packages/math/src/Bounds.ts:88
hitRadiusPoint
hitRadiusPoint(point
, pointMatrix?
): boolean
Parameters
Name | Type |
---|---|
point | IRadiusPointData |
pointMatrix? | IMatrixData |
Returns
boolean
Implementation of
Defined in
leafer/packages/math/src/Bounds.ts:92
hit
hit(bounds
, boundsMatrix?
): boolean
Parameters
Name | Type |
---|---|
bounds | IBoundsData |
boundsMatrix? | IMatrixData |
Returns
boolean
Implementation of
Defined in
leafer/packages/math/src/Bounds.ts:96
includes
includes(bounds
, boundsMatrix?
): boolean
Parameters
Name | Type |
---|---|
bounds | IBoundsData |
boundsMatrix? | IMatrixData |
Returns
boolean
Implementation of
Defined in
leafer/packages/math/src/Bounds.ts:100
intersect
intersect(bounds
, boundsMatrix?
): IBounds
Parameters
Name | Type |
---|---|
bounds | IBoundsData |
boundsMatrix? | IMatrixData |
Returns
Implementation of
Defined in
leafer/packages/math/src/Bounds.ts:105
getIntersect
getIntersect(bounds
, boundsMatrix?
): IBounds
Parameters
Name | Type |
---|---|
bounds | IBoundsData |
boundsMatrix? | IMatrixData |
Returns
Implementation of
Defined in
leafer/packages/math/src/Bounds.ts:110
isSame
isSame(bounds
): boolean
Parameters
Name | Type |
---|---|
bounds | IBoundsData |
Returns
boolean
Implementation of
Defined in
leafer/packages/math/src/Bounds.ts:115
isEmpty
isEmpty(): boolean
Returns
boolean
Implementation of
Defined in
leafer/packages/math/src/Bounds.ts:119
reset
reset(): void
Returns
void