On Wed, 05 Jul 2006 17:14:39 +1200
Greg Ewing <[EMAIL PROTECTED]> wrote:

> I'm writing some code to build Soya objects from a
> description read from a file. I have a vector and
> 3x3 matrix representing the position and orientation
> of an object. As far as I can tell, the only way
> of using these is to figure out where abouts to
> stuff them into the 'matrix' property, which is
> just a big linear array of numbers.
> 
> I think I've worked out what needs to go where,
> but I was wondering if there were a higher-level
> API for doing this that I'd missed somewhere.

Soya's CoordSyst.matrix attribute is actually a 4x4 matrix, so you'll have to 
turn your 3x3 matrix to a 4x4. the additional numbers are the XYZ position 
(value 13, 13 and 14), 1.0 (value 15) and 0.0 (other).

Jiba

_______________________________________________
Soya-user mailing list
Soya-user@gna.org
https://mail.gna.org/listinfo/soya-user

Reply via email to