Skip to content

API / geotoolkit3d / util / CameraHelper / CameraHelper

Class: CameraHelper

util.CameraHelper.CameraHelper

Utility class providing help functions for camera related operations.<br>

Table of contents

Constructors
  • [new CameraHelper()](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit3d.util-5.camerahelper.camerahelper.md#new camerahelper())
Methods

Contents

Constructors

new CameraHelper()

• new CameraHelper()

Methods

isInCameraFrustum

▸ 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().

Parameters

Name Type Description
plotPlotthe plot
objectObject3D<Object3DEventMap&gt;object to test
Optional optionsIsInCameraOptionsIsInCameraOptions

Returns

boolean

true if given object is inside camera frustum, otherwise false