BBox
class BBox implements TypeWebGLConvertible
Constructors​
constructor​
public new BBoxfrom: PossibleBBox: BBox
Properties​
height​
public height: number = 0
width​
public width: number = 0
x​
public x: number = 0
y​
public y: number = 0
symbol​
Accessors​
bottom​
public set bottomvalue: number: void
public get bottom(): number
Parameters
value: number
bottomLeft​
public get bottomLeft(): Vector2
bottomRight​
public get bottomRight(): Vector2
center​
public get center(): Vector2
corners​
left​
public set leftvalue: number: void
public get left(): number
Parameters
value: number
pixelPerfect​
public get pixelPerfect(): BBox
position​
Parameters
right​
public set rightvalue: number: void
public get right(): number
Parameters
value: number
size​
public get size(): Vector2
top​
public set topvalue: number: void
public get top(): number
Parameters
value: number
topLeft​
public get topLeft(): Vector2
topRight​
public get topRight(): Vector2
Methods​
addSpacing​
public addSpacingvalue: PossibleSpacing: BBox
Expand the bounding box to accommodate the given spacing.
Deprecated
Use expand instead.
Parameters
value: PossibleSpacingThe value to expand the bounding box by.
expand​
public expandvalue: PossibleSpacing: BBox
Expand the bounding box to accommodate the given spacing.
Parameters
value: PossibleSpacingThe value to expand the bounding box by.
includes​
Parameters
intersection​
Parameters
intersects​
Parameters
lerp​
Parameters
serialize​
public serialize(): SerializedBBox
toString​
public toString(): string
toSymbol​
public toSymbol(): symbol
toUniform​
Parameters
transform​
public transformmatrix: PossibleMatrix2D: BBox
Parameters
transformCorners​
public transformCornersmatrix: PossibleMatrix2D: Vector2[]
Parameters
translate​
public translatevector: PossibleVector2number: BBox
Translate the bounding box by the given vector.
Parameters
vector: PossibleVector2numberThe vector to translate the bounding box by.
union​
Parameters
arcLerp​
Parameters
createSignal​
static public createSignalinitial?: SignalValuePossibleBBoxinterpolation: InterpolationFunctionBBoxany[] = BBox.lerp: RectSignalvoid
Parameters
initial?: SignalValuePossibleBBoxinterpolation: InterpolationFunctionBBoxany[] = BBox.lerp