Page 1 of 1

[C#] NPVector Member-Types (cast)

Posted: Fri Jul 16, 2010 9:01 am
by Striezel
Hello,
I'm new to OptiTrack and try to receive Trackingdata from a NPVector-Object. The Members X, Y, Z, Roll, Pitch and Yaw return an "object".

The values are needed as float in meters, yet a (float)-cast throws an exception.

To which Type do i need to convert these objects?
Is there a C#-Reference/Documentation available, that I didn't find?

Thanks a lot in advance!

Re: [C#] NPVector Member-Types (cast)

Posted: Fri Jul 16, 2010 1:45 pm
by Birch
Try double / VT_R8

Re: [C#] NPVector Member-Types (cast)

Posted: Fri Jul 16, 2010 3:12 pm
by Striezel
Thanks, its working. Couldnt find it in the samples or elsewhere. Should have thought of and tried that myself before...