//static public implicit operator Native.Transform(LeapTransform t) { return t.ToNative(); }

        internal Native.Transform ToNative()
        {
            Native.Transform t = new Native.Transform();
            t.pos = Position.ToNative();
            t.rot = Rotation.ToNative();
            return(t);
        }
示例#2
0
文件: Shape.cs 项目: Edudjr/riftbdu
 public static Shape CreateBox(LeapVector3 halfSize, float radius) {
   return new Shape(Native.CreateBoxShape(halfSize.ToNative(), radius));
 }
示例#3
0
文件: Shape.cs 项目: cleebp/TieSim
 public static Shape CreateBox(LeapVector3 halfSize, float radius)
 {
     return(new Shape(Native.CreateBoxShape(halfSize.ToNative(), radius)));
 }