Ejemplo n.º 1
0
 public Vector2f getSize() {
   Vector2f out = new Vector2f();
   if (m_size.x <= 1) out.x = m_size.x * WIDTH;
   else out.x = m_size.x;
   if (m_size.y <= 1) out.y = m_size.y * HEIGHT;
   else out.y = m_size.y;
   return out;
 }
Ejemplo n.º 2
0
 public Vector2f getPos() {
   Vector2f out = new Vector2f();
   if (m_position.x <= 1) out.x = m_position.x * WIDTH;
   else out.x = m_position.x;
   if (m_position.y <= 1) out.y = m_position.y * HEIGHT;
   else out.y = m_position.y;
   return out;
 }