Code example for PointF

Methods: set

0
	public void move(float dx,float dy) { position.offset(dx, dy); }
	public RectF getPosition() { return position; }
	public void setSize(float width,float height) { position.inset(-width, -height); }
	//Some more physical parameters most sprites share. 
	public void setSpeed(PointF spd) { speed = spd; }
	public void setSpeed(float x, float y) { speed.set(x, y); }
	public PointF getSpeed() { return speed; }
	public void setAcceleration(PointF acc) { acceleration=acc; }
	public void setAcceleration(float x, float y) { acceleration.set(x, y); }
	public PointF getAcceleration() { return acceleration; }
 
}