Interface OrthogonalCameraState

  • All Superinterfaces:
    CameraState

    public interface OrthogonalCameraState
    extends CameraState
    OrthogonalCameraState represents the state of 3d camera in orthogonal projection. Orthogonal projection maintains parallel lines but provide no sense of depth. The distance from the virtual camera to an object has no affect on the size of the rendered object.
    Since:
    9.12.0
    • Method Detail

      • getViewToWorldScale

        double getViewToWorldScale()
        Returns the view to world scale. This is valid only in the orthogonal projection.
        Returns:
        the view to world scale
        Since:
        9.12.0
      • create

        static OrthogonalCameraState create​(Vector3d location,
                                            Vector3d direction,
                                            Vector3d upDirection,
                                            double viewToWorldScale)
        Creates a new orthogonal camera state.
        Parameters:
        location - the location
        direction - the direction
        upDirection - the up direction
        viewToWorldScale - the proportion of camera view to model
        Returns:
        the new camera state
        Since:
        9.12.0