Problem with the extension

Sep 15, 2010 at 6:05 AM

Hi,

 

im relatively new to AR.

im trying to convert my var to variable to [ToBalderMatrix] so that i can calculate its distance vector....but it keep saying there is no extension. heres part of my coding.

 

 

using Balder

;using Matrix = Balder.Math.Matrix;

using Balder.Math;

using Balder.Objects.Geometries;
using SLARToolKit;

using Image = Balder.Imaging.Image;
using System.Windows.Media.Media3D;

var transform = detectedResults[0].Transformation.ToBalderMatrix();     (The problem is in red)

 

apreciate if someonce could help me out here. thanks.

Coordinator
Sep 15, 2010 at 12:04 PM
Hello hazhaz, The ToBalderMatrix() method is an Extension method from the Balder sample. It converts the SL Matrix3D into Balder's format. Check the Balder folder in the SLARToolkitBalderSample project to find this method. Keep in mind, that you only need this conversion when working with Balder. You can use the returned Matrix3D for transformation without this conversion.
- Rene Schulte