Class World2View


  • public class World2View
    extends Object
    Transform each Vertex of a Model from the world coordinate system to the Camera's view coordinate system.

    For each Vertex object in a Model object, use the Camera's world-to-view translation Vector to transform the object's Vertex coordinates from the world coordinate system to the camera's view coordinate system.

    • Method Detail

      • world2view

        public static Model world2view​(Model model,
                                       Camera camera)
        Use a Camera's world-to-view translation Vector to transform each Vertex from the world coordinate system to the camera's view coordinate system.
        Parameters:
        model - Model with Vertex objects in the world coordinate system
        camera - a Camera with a translation Vector
        Returns:
        a new Model with Vertex objects in the Camera's view coordinate system