@SuppressWarnings("unchecked") @MarshalsPointer public static List<SCNMatrix4> toObject( Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSValue> o = (NSArray<NSValue>) NSObject.Marshaler.toObject(cls, handle, flags); if (o == null) { return null; } List<SCNMatrix4> list = new ArrayList<>(); for (NSValue val : o) { list.add(val.SCNMatrix4Value()); } return list; }
@MarshalsPointer public static long toNative(List<SCNMatrix4> l, long flags) { if (l == null) { return 0L; } NSMutableArray<NSValue> array = new NSMutableArray<>(); for (SCNMatrix4 i : l) { array.add(NSValue.valueOf(i)); } return NSObject.Marshaler.toNative(array, flags); }