API / geotoolkit3d / util / CameraHelper / CameraHelper
util.CameraHelper.CameraHelper
Utility class providing help functions for camera related operations.<br>
Constructors
- [new CameraHelper()](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit3d.util-5.camerahelper.camerahelper.md#new camerahelper())
Methods
Methods
▸ Static isInCameraFrustum(plot, object, options?): boolean
Test if an object (or its children) is inside camera frustum, which means, inside the current 3D viewport of the given Plot.<br> To test if any object is inside camera frustum, user can set object as plot.getRoot().
| Name | Type | Description |
|---|---|---|
plot | Plot | the plot |
object | Object3D<Object3DEventMap> | object to test |
Optional options | IsInCameraOptions | IsInCameraOptions |
boolean
true if given object is inside camera frustum, otherwise false