Class: BoundingBox
Constructors​
constructor​
• new BoundingBox(x1?
, y1?
, x2?
, y2?
)
Parameters​
Name | Type | Default value |
---|---|---|
x1 | number | Number.NaN |
y1 | number | Number.NaN |
x2 | number | Number.NaN |
y2 | number | Number.NaN |
Defined in​
Properties​
x1​
• x1: number
= Number.NaN
Defined in​
y1​
• y1: number
= Number.NaN
Defined in​
x2​
• x2: number
= Number.NaN
Defined in​
y2​
• y2: number
= Number.NaN
Defined in​
Accessors​
x​
• get
x(): number
Returns​
number
Defined in​
y​
• get
y(): number
Returns​
number
Defined in​
width​
• get
width(): number
Returns​
number
Defined in​
height​
• get
height(): number
Returns​
number
Defined in​
Methods​
addPoint​
â–¸ addPoint(x
, y
): void
Parameters​
Name | Type |
---|---|
x | number |
y | number |
Returns​
void
Defined in​
addX​
â–¸ addX(x
): void
Parameters​
Name | Type |
---|---|
x | number |
Returns​
void
Defined in​
addY​
â–¸ addY(y
): void
Parameters​
Name | Type |
---|---|
y | number |
Returns​
void
Defined in​
addBoundingBox​
â–¸ addBoundingBox(boundingBox
): void
Parameters​
Name | Type |
---|---|
boundingBox | BoundingBox |
Returns​
void
Defined in​
sumCubic​
â–¸ Private
sumCubic(t
, p0
, p1
, p2
, p3
): number
Parameters​
Name | Type |
---|---|
t | number |
p0 | number |
p1 | number |
p2 | number |
p3 | number |
Returns​
number
Defined in​
bezierCurveAdd​
â–¸ Private
bezierCurveAdd(forX
, p0
, p1
, p2
, p3
): void
Parameters​
Name | Type |
---|---|
forX | boolean |
p0 | number |
p1 | number |
p2 | number |
p3 | number |
Returns​
void
Defined in​
addBezierCurve​
â–¸ addBezierCurve(p0x
, p0y
, p1x
, p1y
, p2x
, p2y
, p3x
, p3y
): void
Parameters​
Name | Type |
---|---|
p0x | number |
p0y | number |
p1x | number |
p1y | number |
p2x | number |
p2y | number |
p3x | number |
p3y | number |
Returns​
void
Defined in​
addQuadraticCurve​
â–¸ addQuadraticCurve(p0x
, p0y
, p1x
, p1y
, p2x
, p2y
): void
Parameters​
Name | Type |
---|---|
p0x | number |
p0y | number |
p1x | number |
p1y | number |
p2x | number |
p2y | number |
Returns​
void
Defined in​
isPointInBox​
â–¸ isPointInBox(x
, y
): boolean
Parameters​
Name | Type |
---|---|
x | number |
y | number |
Returns​
boolean