Beispiel #1
0
 public void TestCrossProduct()
 {
     MCvPoint3D32f p1 = new MCvPoint3D32f(1.0f, 0.0f, 0.0f);
      MCvPoint3D32f p2 = new MCvPoint3D32f(0.0f, 1.0f, 0.0f);
      MCvPoint3D32f p3 = p1.CrossProduct(p2);
      Assert.IsTrue(new MCvPoint3D32f(0.0f, 0.0f, 1.0f).Equals(p3));
 }
Beispiel #2
0
        private void memsTestOutputTimer_Tick(object sender, EventArgs e)
        {
            (this.MemsProvider as DeviceRTWebMEMSProvider).IsEagerNextReadings = false;
            var nextReadings = this.MemsProvider.GetNextReadingsSet();
            //
            //
            //this.RotateWpfContent();

            this.ProcessMEMSReadings(nextReadings);

            //points test
            MCvPoint3D32f pointA = new MCvPoint3D32f(0, 1, 0);
            MCvPoint3D32f pointB = new MCvPoint3D32f(1, 0, 0);
            var pointC = pointA.CrossProduct(pointB);

            ////
        }