//------------------------------------------------------------------------------
// Lamp : Open source game middleware
// Copyright (C) 2004  Junpei Ohtani ( Email : junpee@users.sourceforge.jp )
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
//------------------------------------------------------------------------------

/** @file
 * 二要素実数位置実装
 * @author Junpee
 */

#include "LampBasic.h"
#include "Core/Primitive/Point2f.h"
#include "Core/Primitive/Point2i.h"

namespace Lamp{

//------------------------------------------------------------------------------
// 定数
//------------------------------------------------------------------------------
/// ゼロ位置
const Point2f Point2f::zero(0.f, 0.f);

/// 単位位置
const Point2f Point2f::unit(1.f, 1.f);

//------------------------------------------------------------------------------
// コンストラクタ
Point2f::Point2f(const Point2i& source) :
	x((float)source.x), y((float)source.y){
}
//------------------------------------------------------------------------------
// 値の設定
void Point2f::set(const Point2i& source){
	x = (float)source.x;
	y = (float)source.y;
}
//------------------------------------------------------------------------------
} // End of namespace Lamp
//------------------------------------------------------------------------------
