Beispiel #1
0
 internal IOpenPoseObject ToNative()
 {
     if (this._Imp == null)
     {
         this._Imp = CreateImp();
     }
     return(this._Imp.ToNative(this.X, this.Y));
 }
Beispiel #2
0
        internal Point(IntPtr ptr, bool isEnabledDispose = true)
        {
            if (!SupportTypes.TryGetValue(typeof(T), out var type))
            {
                throw new NotSupportedException($"{typeof(T).Name} does not support");
            }

            this._Imp = CreateImp();
            this.X    = default(T);
            this.Y    = default(T);
        }
Beispiel #3
0
        public Point(T x, T y)
        {
            if (!SupportTypes.TryGetValue(typeof(T), out var type))
            {
                throw new NotSupportedException($"{typeof(T).Name} does not support");
            }

            this._Imp = CreateImp();
            this.X    = x;
            this.Y    = y;
        }