new BoundingBox(verts)
Get bounding box from an array of vectors.
Parameters:
Name | Type | Description |
---|---|---|
verts |
Array.<Vector> |
- Source:
Extends
- PhSim.Options.Rectangle
Members
-
largeX :Number
-
The x coordinate of the right most vertex of
verts
.Type:
- Number
- Source:
-
smallX :Number
-
The x coordinate of the left most vertex of
verts
.Type:
- Number
- Source:
Methods
-
<static> fromShape(object)
-
Get bounding box of PhSim shape.
Parameters:
Name Type Description object
PhSimObject The Static Object
- Source:
Returns:
- Type
- PhSim.BoundingBox