Package com.solibri.smc.api.threed
Interface PerspectiveCameraState
- All Superinterfaces:
CameraState
PerspectiveCameraState represents the state of 3d camera in perspective projection. Perspective projection is a
linear projection where three dimensional objects are projected on a picture plane. This has the effect that distant
objects appear smaller than nearer objects.
- Since:
- 9.12.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic PerspectiveCameraState
Creates a new perspective camera state.double
Returns the field of view (FOV) in radians.Methods inherited from interface com.solibri.smc.api.threed.CameraState
getDirection, getLocation, getUpDirection
-
Method Details
-
getFieldOfView
double getFieldOfView()Returns the field of view (FOV) in radians. This is valid only in the perspective projection.- Returns:
- the field of view
- Since:
- 9.12.0
-
create
static PerspectiveCameraState create(Vector3d location, Vector3d direction, Vector3d upDirection, double fieldOfView) Creates a new perspective camera state.- Parameters:
location
- the locationdirection
- the directionupDirection
- the up directionfieldOfView
- the field of view in radians [0.0 - Math.PI]- Returns:
- the new camera state
- Since:
- 9.12.0
-