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 SummaryModifier and TypeMethodDescriptionstatic PerspectiveCameraStateCreates a new perspective camera state.doubleReturns the field of view (FOV) in radians.Methods inherited from interface com.solibri.smc.api.threed.CameraStategetDirection, getLocation, getUpDirection
- 
Method Details- 
getFieldOfViewdouble 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
 
- 
createstatic PerspectiveCameraState create(Vector3d location, Vector3d direction, Vector3d upDirection, double fieldOfView) Creates a new perspective camera state.- Parameters:
- location- the location
- direction- the direction
- upDirection- the up direction
- fieldOfView- the field of view in radians [0.0 - Math.PI]
- Returns:
- the new camera state
- Since:
- 9.12.0
 
 
-