new AxisAlignedBoundingBox
Creates an instance of an AxisAlignedBoundingBox from the minimum and maximum points along the x, y, and z axes.
Parameters:
| Name | Type | Argument | Default | Description | 
|---|---|---|---|---|
| minimum | Cartesian3 | <optional> | Cartesian3.ZERO | The minimum point along the x, y, and z axes. | 
| maximum | Cartesian3 | <optional> | Cartesian3.ZERO | The maximum point along the x, y, and z axes. | 
| center | Cartesian3 | <optional> | The center of the box; automatically computed if not supplied. | 
See:
Source:
Members
- 
    center :Cartesian3
- 
    
    The center point of the bounding box.
- 
    maximum :Cartesian3
- 
    
    The maximum point defining the bounding box.- Default Value:
 
- 
    minimum :Cartesian3
- 
    
    The minimum point defining the bounding box.- Default Value:
 
Methods
- 
    clone
- 
    
    
    Duplicates this AxisAlignedBoundingBox instance. Parameters:Name Type Argument Description resultAxisAlignedBoundingBox <optional> 
 The object onto which to store the result. Returns:AxisAlignedBoundingBox The modified result parameter or a new AxisAlignedBoundingBox instance if one was not provided.
- 
    equals
- 
    
    
    Compares this AxisAlignedBoundingBox against the provided AxisAlignedBoundingBox componentwise and returns trueif they are equal,falseotherwise.Parameters:Name Type Argument Description rightAxisAlignedBoundingBox <optional> 
 The right hand side AxisAlignedBoundingBox. Returns:Booleantrueif they are equal,falseotherwise.
- 
    intersect
- 
    
    
    Determines which side of a plane this box is located. Parameters:Name Type Description planeCartesian4 The coefficients of the plane in the form ax + by + cz + d = 0where the coefficients a, b, c, and d are the components x, y, z, and w of the {Cartesian4}, respectively.Returns:Intersect {Intersect.INSIDE} if the entire box is on the side of the plane the normal is pointing, {Intersect.OUTSIDE} if the entire box is on the opposite side, and {Intersect.INTERSETING} if the box intersects the plane.
- 
    <static> clone
- 
    
    
    Duplicates a AxisAlignedBoundingBox instance. Parameters:Name Type Argument Description boxAxisAlignedBoundingBox The bounding box to duplicate. resultAxisAlignedBoundingBox <optional> 
 The object onto which to store the result. Returns:AxisAlignedBoundingBox The modified result parameter or a new AxisAlignedBoundingBox instance if none was provided. (Returns undefined if box is undefined)
- 
    <static> equals
- 
    
    
    Compares the provided AxisAlignedBoundingBox componentwise and returns trueif they are equal,falseotherwise.Parameters:Name Type Argument Description leftAxisAlignedBoundingBox <optional> 
 The first AxisAlignedBoundingBox. rightAxisAlignedBoundingBox <optional> 
 The second AxisAlignedBoundingBox. Returns:Booleantrueif left and right are equal,falseotherwise.
- 
    <static> fromPoints
- 
    
    
    Computes an instance of an AxisAlignedBoundingBox. The box is determined by finding the points spaced the farthest apart on the x, y, and z axes. Parameters:Name Type Argument Description positionsArray List of points that the bounding box will enclose. Each point must have a x,y, andzproperties.resultAxisAlignedBoundingBox <optional> 
 The object onto which to store the result. Returns:AxisAlignedBoundingBox The modified result parameter or a new AxisAlignedBoundingBox instance if one was not provided.Example// Compute an axis aligned bounding box enclosing two points. var box = Cesium.AxisAlignedBoundingBox.fromPoints([new Cesium.Cartesian3(2, 0, 0), new Cesium.Cartesian3(-2, 0, 0)]); 
- 
    <static> intersect
- 
    
    
    Determines which side of a plane a box is located. Parameters:Name Type Description boxAxisAlignedBoundingBox The bounding box to test. planeCartesian4 The coefficients of the plane in the form ax + by + cz + d = 0where the coefficients a, b, c, and d are the components x, y, z, and w of the {Cartesian4}, respectively.Returns:Intersect {Intersect.INSIDE} if the entire box is on the side of the plane the normal is pointing, {Intersect.OUTSIDE} if the entire box is on the opposite side, and {Intersect.INTERSETING} if the box intersects the plane.
