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

Jordi Torres jtorresfabra at gmail.com
Wed Oct 17 03:15:54 PDT 2007


thanks, it was newby question... :S



2007/10/17, Robert Osfield <robert.osfield at gmail.com>:
>
> 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
>
> >
> >
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20071017/6ff2da00/attachment-0003.htm>


More information about the osg-users mailing list