Last updated

API / geotoolkit3d / util / CameraHelper / CameraHelper

Class: CameraHelper

util.CameraHelper.CameraHelper

Utility class providing help functions for camera related operations.

Table of contents

Constructors
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.
To test if any object is inside camera frustum, user can set object as plot.getRoot().

Parameters

Name Type Description
plotPlotthe plot
objectObject3D<Object3DEventMap>object to test
Optional optionsIsInCameraOptionsIsInCameraOptions

Returns

boolean

true if given object is inside camera frustum, otherwise false