]> Dogcows Code - chaz/yoink/blob - src/Moof/Rectangle.cc
upgrade libpng to 1.4.0
[chaz/yoink] / src / Moof / Rectangle.cc
1
2 /*] Copyright (c) 2009-2010, Charles McGarvey [**************************
3 **] All rights reserved.
4 *
5 * vi:ts=4 sw=4 tw=75
6 *
7 * Distributable under the terms and conditions of the 2-clause BSD license;
8 * see the file COPYING for a complete text of the license.
9 *
10 **************************************************************************/
11
12 #include "Rectangle.hh"
13
14
15 namespace Mf {
16
17
18 void Rectangle::getCorners(Vector2 corners[4]) const
19 {
20 corners[0][0] = min[0]; corners[0][1] = min[1];
21 corners[1][0] = max[0]; corners[1][1] = min[1];
22 corners[2][0] = max[0]; corners[2][1] = max[1];
23 corners[3][0] = min[0]; corners[3][1] = max[1];
24 corners[4][0] = min[0]; corners[4][1] = min[1];
25 corners[5][0] = max[0]; corners[5][1] = min[1];
26 corners[6][0] = max[0]; corners[6][1] = max[1];
27 corners[7][0] = min[0]; corners[7][1] = max[1];
28 }
29
30
31 } // namespace Mf
32
This page took 0.030361 seconds and 4 git commands to generate.