/*---------------------------------------------------------------------------* Project: Horizon File: math_Vector2.cpp Copyright (C)2009 Nintendo Co., Ltd. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. $Rev: 12449 $ *---------------------------------------------------------------------------*/ #include #include #if !defined(NN_MATH_AS_INLINE) #include #endif namespace nn { namespace math { /* ------------------------------------------------------------------------ VEC2 ------------------------------------------------------------------------ */ /*!--------------------------------------------------------------------------* Name: VEC2::Report @brief ベクトルの内容をデバッグ出力に書き出します。 @param[in] bNewline true なら出力の最後に改行を出力します。 @param[in] name ベクトルの名前を指定します。NULL指定可能です。 @return なし *---------------------------------------------------------------------------*/ void VEC2::Report(bool bNewline, const char* name) const { if (name) NN_MATH_REPORT("%s", name); else NN_MATH_REPORT("VEC2"); NN_MATH_REPORT("<%f, %f>", x, y); if (bNewline) NN_MATH_REPORT("\n"); } } // namespace math } // namespace nn