@revideo/core / types / BBox
Class: BBox
Defined in: types/BBox.ts:35
Implements
Constructors
Constructor
new BBox():
BBox
Defined in: types/BBox.ts:235
Returns
BBox
Constructor
new BBox(
from):BBox
Defined in: types/BBox.ts:236
Parameters
from
Returns
BBox
Constructor
new BBox(
position,size):BBox
Defined in: types/BBox.ts:237
Parameters
position
size
Returns
BBox
Constructor
new BBox(
x,y?,width?,height?):BBox
Defined in: types/BBox.ts:238
Parameters
x
number
y?
number
width?
number
height?
number
Returns
BBox
Properties
height
height:
number=0
Defined in: types/BBox.ts:41
width
width:
number=0
Defined in: types/BBox.ts:40
x
x:
number=0
Defined in: types/BBox.ts:38
y
y:
number=0
Defined in: types/BBox.ts:39
symbol
readonlystaticsymbol: typeofsymbol
Defined in: types/BBox.ts:36
Accessors
bottom
Get Signature
get bottom():
number
Defined in: types/BBox.ts:198
Returns
number
Set Signature
set bottom(
value):void
Defined in: types/BBox.ts:202
Parameters
value
number
Returns
void
bottomLeft
Get Signature
get bottomLeft():
Vector2
Defined in: types/BBox.ts:214
Returns
bottomRight
Get Signature
get bottomRight():
Vector2
Defined in: types/BBox.ts:218
Returns
center
Get Signature
get center():
Vector2
Defined in: types/BBox.ts:168
Returns
corners
Get Signature
Defined in: types/BBox.ts:222
Returns
[Vector2, Vector2, Vector2, Vector2]
left
Get Signature
get left():
number
Defined in: types/BBox.ts:172
Returns
number
Set Signature
set left(
value):void
Defined in: types/BBox.ts:176
Parameters
value
number
Returns
void
pixelPerfect
Get Signature
get pixelPerfect():
BBox
Defined in: types/BBox.ts:226
Returns
BBox
position
Get Signature
get position():
Vector2
Defined in: types/BBox.ts:155
Returns
Set Signature
set position(
value):void
Defined in: types/BBox.ts:159
Parameters
value
Returns
void
right
Get Signature
get right():
number
Defined in: types/BBox.ts:181
Returns
number
Set Signature
set right(
value):void
Defined in: types/BBox.ts:185
Parameters
value
number
Returns
void
size
Get Signature
get size():
Vector2
Defined in: types/BBox.ts:164
Returns
top
Get Signature
get top():
number
Defined in: types/BBox.ts:189
Returns
number
Set Signature
set top(
value):void
Defined in: types/BBox.ts:193
Parameters
value
number
Returns
void
topLeft
Get Signature
get topLeft():
Vector2
Defined in: types/BBox.ts:206
Returns
topRight
Get Signature
get topRight():
Vector2
Defined in: types/BBox.ts:210
Returns
Methods
addSpacing()
addSpacing(
value):BBox
Defined in: types/BBox.ts:315
Expand the bounding box to accommodate the given spacing.
Parameters
value
The value to expand the bounding box by.
Returns
BBox
Deprecated
Use expand instead.
expand()
expand(
value):BBox
Defined in: types/BBox.ts:299
Expand the bounding box to accommodate the given spacing.
Parameters
value
The value to expand the bounding box by.
Returns
BBox
includes()
includes(
point):boolean
Defined in: types/BBox.ts:319
Parameters
point
Returns
boolean
intersection()
intersection(
other):BBox
Defined in: types/BBox.ts:337
Parameters
other
BBox
Returns
BBox
intersects()
intersects(
other):boolean
Defined in: types/BBox.ts:328
Parameters
other
BBox
Returns
boolean
lerp()
lerp(
to,value):BBox
Defined in: types/BBox.ts:151
Parameters
to
BBox
value
number | Vector2 | BBox
Returns
BBox
serialize()
serialize():
SerializedBBox
Defined in: types/BBox.ts:376
Returns
toString()
toString():
string
Defined in: types/BBox.ts:365
Returns a string representation of an object.
Returns
string
toSymbol()
toSymbol():
symbol
Defined in: types/BBox.ts:361
Returns
symbol
Implementation of
toUniform()
toUniform(
gl,location):void
Defined in: types/BBox.ts:369
Parameters
gl
WebGL2RenderingContext
location
WebGLUniformLocation
Returns
void
Implementation of
transform()
transform(
matrix):BBox
Defined in: types/BBox.ts:283
Parameters
matrix
Returns
BBox
transformCorners()
transformCorners(
matrix):Vector2[]
Defined in: types/BBox.ts:290
Parameters
matrix
Returns
Vector2[]
union()
union(
other):BBox
Defined in: types/BBox.ts:350
Parameters
other
BBox
Returns
BBox
arcLerp()
staticarcLerp(from,to,value,reverse?,ratio?):BBox
Defined in: types/BBox.ts:84
Parameters
from
BBox
to
BBox
value
number
reverse?
boolean = false
ratio?
number
Returns
BBox
createSignal()
staticcreateSignal(initial?,interpolation?):RectSignal<void>
Defined in: types/BBox.ts:43
Parameters
initial?
interpolation?
InterpolationFunction<BBox> = BBox.lerp
Returns
RectSignal<void>
fromBBoxes()
staticfromBBoxes(…boxes):BBox
Defined in: types/BBox.ts:125
Parameters
boxes
…BBox[]
Returns
BBox
fromPoints()
staticfromPoints(…points):BBox
Defined in: types/BBox.ts:101
Parameters
points
…Vector2[]
Returns
BBox
fromSizeCentered()
staticfromSizeCentered(size):BBox
Defined in: types/BBox.ts:97
Parameters
size
Returns
BBox
lerp()
staticlerp(from,to,value):BBox
Defined in: types/BBox.ts:55
Parameters
from
BBox
to
BBox
value
number | Vector2 | BBox
Returns
BBox