pmc/rectangle.cc
changeset 43 cf8c1b5127b2
parent 42 83b8151b966d
child 45 7197576fedcf
equal deleted inserted replaced
42:83b8151b966d 43:cf8c1b5127b2
    16     anker = Vector (0, 0);
    16     anker = Vector (0, 0);
    17 
    17 
    18     surface = s;
    18     surface = s;
    19 }
    19 }
    20 
    20 
    21 Rectangle::Rectangle (Surface * s, Vector p1, Vector p2, Vector p3, Vector p4)
    21 Rectangle::Rectangle (Surface * s, Vector& p1, Vector& p2, Vector& p3, Vector& p4)
    22 {
    22 {
    23     P[0] = new Vector (p1);
    23     P[0] = new Vector (p1);
    24     P[1] = new Vector (p2);
    24     P[1] = new Vector (p2);
    25     P[2] = new Vector (p3);
    25     P[2] = new Vector (p3);
    26     P[3] = new Vector (p4);
    26     P[3] = new Vector (p4);