[osg-users] get elements of an osg::Matrixd instance

Robert Osfield robert.osfield at gmail.com
Wed Oct 17 03:08:21 PDT 2007


Hi Jordi,

Look for Matrix operators methods:

        inline value_type& operator()(int row, int col) { return
_mat[row][col]; }
        inline value_type operator()(int row, int col) const { return
_mat[row][col]; }

On 10/17/07, Jordi Torres <jtorresfabra at gmail.com> wrote:
> Hi,
>
> I'm trying to do some conversions between OpenSceneGraph and Java using JNI.
> One of them, Matrix2jobject, must  be able  to read  the elements of
> osg::Matrix for copy pourposes. osg::Matrix API doesn't provide methods for
> reading elements of an osg::Matrix instance, and the atribute _mat[4][4] is
> protected. Anybody knows how to get this elements?
>
> Thanks in advance.
>
> Regards, Jordi.
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>



More information about the osg-users mailing list