Camera
Classes
Interfaces
Type Aliases
Variables
MAX_ANGLE
MAX_TILT
MIN_ANGLE
MIN_TILT
Functions
Variables
-
Camera.
MAX_ANGLE
Type: 150
-
Camera.
MAX_TILT
Type: 45
-
Camera.
MIN_ANGLE
Type: 30
-
Camera.
MIN_TILT
Type: -45
Functions
applyGravity
-
Operators.Camera.
applyGravity
(view, pointObject, downVector, maxFallDistance) Arguments: This returns the final position of a point object when gravity is applied. If there are no floors to collide with, null is returned.
It is the caller’s responsibility to interpolate smooth motion if desired.
Return type: Promise <Point3 | null>
buildCollisionRayConfig
-
Operators.Camera.
buildCollisionRayConfig
(bimMask, maxWorldDistance) Arguments: - bimMask (
BimMask()
) – Restricts the objects the selection ray can select to the BIM types present in the mask. - maxWorldDistance (
null | number()
) – If non-null, this limits the distance the selection ray can travel to hit an object.
Returns: A ray pick config object suitable for BIM collision tests.
Return type: PickConfig
- bimMask (
clamp
-
Operators.Camera.
clamp
(value, min, max) Arguments: - value (
number()
) – None - min (
number()
) – None - max (
number()
) – None
Return type: number
- value (
getDownAxis
normalizeDirections
-
Operators.Camera.
normalizeDirections
(directions) Arguments: - directions (
Set
) – None
Normalizes a set of directions such that it does not contain opposing directions. If opposing directions do exist, then they cancel each other and are removed from the set.
Return type: void - directions (
removeOpposing
-
Operators.Camera.
removeOpposing
(set, x, y) Arguments: - set (
Set
) – The set to inspect and alter. - x (
T()
) – The value that cancels withy
. - y (
T()
) – The value that cancels withx
.
If the input set contains both
x
andy
, then bothx
andy
are removed from the set. Otherwise this function does nothing.Return type: void - set (