Description
The Bounds
property of the SceneMap
class represents the bounding box of the map. This property provides the spatial limits of the map within the scene, defined by a BBox
structure. It is useful for understanding the extents of the map and for performing spatial queries or collision detection.
Usage
To access the Bounds
property, you need an instance of the SceneMap
class. Once you have the instance, you can retrieve the bounding box of the map as follows:
Example
```csharp
// Assume 'sceneMap' is an instance of SceneMap
BBox mapBounds = sceneMap.Bounds;
// You can now use mapBounds to perform operations like checking if a point is within the map
Vector3 point = new Vector3(0, 0, 0);
bool isPointInside = mapBounds.Contains(point);
```