Code example for PointF

0
		} 
		 
		Log.d(LCAT,"[METHODSDEMO] demoMethodPoint received " + args.length + " arguments");		
		 
		// Use the TiConvert methods to get the values from the arguments 
		PointF point = new PointF();
		point.x = (args[kArgX] != null) ? TiConvert.toFloat(args[kArgX]) : 0;
		point.y = (args[kArgY] != null) ? TiConvert.toFloat(args[kArgY]) : 0;
 
		HashMap result = new HashMap();
		result.put("x", point.x);
		result.put("y", point.y);
		 
		Log.d(LCAT,"[METHODSDEMO] " + result);
		 
		return result;
	} 
	 
	@Kroll.method 
	public HashMap demoMethodRange(Object[] args)
Experience pair programming with AI  Get Codota for Java