Interface PerspectiveCameraState

  • All Superinterfaces:
    CameraState

    public interface PerspectiveCameraState
    extends 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 Detail

      • 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 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