]>
Dogcows Code - chaz/yoink/blob - Rectangle.cc
949c22a2395deb23fc9454f06fa3e8878377c409
2 /*] Copyright (c) 2009-2010, Charles McGarvey [**************************
3 **] All rights reserved.
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.
10 **************************************************************************/
12 #include "Rectangle.hh"
18 void Rectangle::getCorners(Vector2 corners
[4]) const
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];
This page took 0.032912 seconds and 3 git commands to generate.