SimApi Convertor zsVec2LinearVec

From SIMboxWiki
Jump to navigation Jump to search



Icon attributes.pngstatic void SimApi::Convertor::zsVec2LinearVec(const zsVec3 &zsVec, LinearVec &linVec)

    Description

    Converts graphic engine vector to linear vector.

    Parameters

    zsVec - In parameter, the graphic engine vector (of type zsVec3)
    linVec - Out parameter, linear vector (of type LinearVec)

    Return

    Type: void   Description: The linear vector is returned in the linVec parameter

    Remarks
    

The 3D engine and the simulation engine represent position vectors differently. When using 3D engine API, you must convert from the LinearVec type that is used by simulation engine to zsVec3 type that is used by 3D engine, and then convert the results in conversely. See "SIMBox Coordinates Systems" for more information.


    Code Sample
    


    See Also

     linearVec2zsVec

     angularVec2zsVec

     zsVec2AngularVec

    Related Links

     SIMbox Coordinates Systems Overview

     LinearVec

     zsVec3