Class Model2World


  • public class Model2World
    extends Object
    Transform each Vertex of a Model from the model's (private) local coordinate system to the (shared) world coordinate system.

    For each Vertex object in a Model object, use a Position's transformation Matrix to transform the object's Vertex coordinates from a model's coordinate system to the world coordinate system.

    Return a new Model object, which contains all the translated vertices from the original model, to the renderer. The original model object, which belongs to the client program, remains unchanged. So the renderer gets the mutated model and the client sees its model as being preserved.