Example #1
0
        public static VNCircle CreateUsingDiameter(VNPoint center, double diameter)
        {
            var handle = Messaging.IntPtr_objc_msgSend(class_ptr, Selector.GetHandle("alloc"));

            handle = Messaging.IntPtr_objc_msgSend_IntPtr_Double(handle, Selector.GetHandle("initWithCenter:diameter:"), center.Handle, diameter);
            return(Runtime.GetNSObject <VNCircle> (handle, true));
        }
Example #2
0
        public static VNCircle CreateUsingRadius(VNPoint center, double radius)
        {
            var handle = Messaging.IntPtr_objc_msgSend(class_ptr, Selector.GetHandle("alloc"));

#if NET
            handle = Messaging.NativeHandle_objc_msgSend_NativeHandle_Double(handle, Selector.GetHandle("initWithCenter:radius:"), center.Handle, radius);
#else
            handle = Messaging.IntPtr_objc_msgSend_IntPtr_Double(handle, Selector.GetHandle("initWithCenter:radius:"), center.Handle, radius);
#endif
            return(Runtime.GetNSObject <VNCircle> (handle, true));
        }