Exemple #1
0
    public void SetParent(IResizable p, Vector2 pos)
    {
        Vector2 wh2 = (p.GetStart() - p.GetStop()) / new Vector2(2.0f, 2.0f);

        p.SetStart(pos - wh2);
        p.SetStop(pos + wh2);
    }
Exemple #2
0
 public void SetParent(IResizable p, Vector2 pos)
 {
     p.SetStart(pos);
 }