Class Frustum

    • Method Detail

      • getNearPlane

        public double getNearPlane()
        Gets the frustum's near plane distance.
      • setNearPlane

        public void setNearPlane​(double value)
        Sets the frustum's near plane distance.
        Parameters:
        value - New value
      • getFarPlane

        public double getFarPlane()
        Gets the frustum's far plane distance.
      • setFarPlane

        public void setFarPlane​(double value)
        Sets the frustum's far plane distance.
        Parameters:
        value - New value
      • getAspect

        public double getAspect()
        Gets the aspect ratio of the frustum
      • setAspect

        public void setAspect​(double value)
        Sets the aspect ratio of the frustum
        Parameters:
        value - New value
      • getOrthoHeight

        public double getOrthoHeight()
        Gets the height when frustum in orthographic projection.
      • setOrthoHeight

        public void setOrthoHeight​(double value)
        Sets the height when frustum in orthographic projection.
        Parameters:
        value - New value
      • getUp

        public Vector3 getUp()
        Gets the up direction of the camera
      • setUp

        public void setUp​(Vector3 value)
        Sets the up direction of the camera
        Parameters:
        value - New value
      • getLookAt

        public Vector3 getLookAt()
        Gets the the interested position that the camera is looking at.
      • setLookAt

        public void setLookAt​(Vector3 value)
        Sets the the interested position that the camera is looking at.
        Parameters:
        value - New value
      • setDirection

        public void setDirection​(Vector3 value)
        Sets the direction that the camera is looking at. Changes on this property will also affects the getLookAt() and getTarget().
        Specified by:
        setDirection in interface IOrientable
        Parameters:
        value - New value
      • getTarget

        public Node getTarget()
        Gets the target that the camera is looking at. If the user supports this property, it should be prior to getLookAt() property.
        Specified by:
        getTarget in interface IOrientable
      • setTarget

        public void setTarget​(Node value)
        Sets the target that the camera is looking at. If the user supports this property, it should be prior to getLookAt() property.
        Specified by:
        setTarget in interface IOrientable
        Parameters:
        value - New value