Class Position


  • public final class Position
    extends Object
    A Position data structure represents a geometric object in a distinct location in three-dimensional camera space as part of a Scene.

    A Position object holds references to a Model object and a Vector object. The Model represents the geometric object in the Scene. The Vector determines the model's location in the Camera coordinate system.

    When the renderer renders this Position's Model into a FrameBuffer, the first stage of the rendering pipeline, Model2Camera, adds this Position's translation Vector to every Vertex in the Model's vertex list, which converts the coordinates in each Vertex from the model's own local coordinate system to the Camera's coordinate system (which is "shared" by all the other models in the scene). This vector addition has the effect of "placing" the model in camera space at an appropriate location.