object.java :  » Java-2D » polhemthegame » basics » Java Open Source

Java Open Source » Java 2D » polhemthegame 
polhemthegame » basics » object.java
package basics;

public class object
{
  public vector2f position, speed;
  public vector2i size;

  public object()
  {
    position = new vector2f();
    speed = new vector2f();
    size = new vector2i();
  }

  public vector2f center()
  {
    return new vector2f( position.x + size.x / 2.0f, position.y + size.y / 2.0f );
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.