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;
 }
Ejemplo n.º 3
0
 public Vector2f getPosLabel(float direction) {
   return m_position.add(new Vector2f(direction * m_size.x / 2, -m_size.y / 2));
 }
Ejemplo n.º 4
0
 public Vector2f getPosLabel() {
   return m_position.subtract(new Vector2f(getSize().x, 0));
 }