/*] Copyright (c) 2009-2010, Charles McGarvey [************************** **] All rights reserved. * * vi:ts=4 sw=4 tw=75 * * Distributable under the terms and conditions of the 2-clause BSD license; * see the file COPYING for a complete text of the license. * **************************************************************************/ #include "Rectangle.hh" namespace Mf { void Rectangle::getCorners(Vector2 corners[4]) const { corners[0][0] = min[0]; corners[0][1] = min[1]; corners[1][0] = max[0]; corners[1][1] = min[1]; corners[2][0] = max[0]; corners[2][1] = max[1]; corners[3][0] = min[0]; corners[3][1] = max[1]; corners[4][0] = min[0]; corners[4][1] = min[1]; corners[5][0] = max[0]; corners[5][1] = min[1]; corners[6][0] = max[0]; corners[6][1] = max[1]; corners[7][0] = min[0]; corners[7][1] = max[1]; } } // namespace Mf