/*---------------------------------------------------------------------------* Project: Horizon File: math_Transform.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 namespace nn { namespace math { /* ------------------------------------------------------------------------ 簡易レポート用関数 ------------------------------------------------------------------------ */ /*!--------------------------------------------------------------------------* Name: Transform2::Report @brief Transform2 の内容をデバッグ出力に書き出します。 @param[in] bNewline true なら出力の最後に改行を出力します。 @param[in] name Transform2 の名前を指定します。NULL指定可能です。 @return なし *---------------------------------------------------------------------------*/ void Transform2::Report(bool bNewline, const char* name) const { if (name) { NN_MATH_REPORT("%s", name); } else { NN_MATH_REPORT("Transform2\n"); } NN_MATH_REPORT("Scale <%f, %f>\n", scale.x, scale.y); NN_MATH_REPORT("Rotate <%f, %f>\n", rotate.x, rotate.y); NN_MATH_REPORT("Translate<%f, %f>\n", translate.x, translate.y); if (bNewline) { NN_MATH_REPORT("\n"); } } /*!--------------------------------------------------------------------------* Name: Transform3::Report @brief Transform3 の内容をデバッグ出力に書き出します。 @param[in] bNewline true なら出力の最後に改行を出力します。 @param[in] name Transform3 の名前を指定します。NULL指定可能です。 @return なし *---------------------------------------------------------------------------*/ void Transform3::Report(bool bNewline, const char* name) const { if (name) { NN_MATH_REPORT("%s", name); } else { NN_MATH_REPORT("Transform3\n"); } NN_MATH_REPORT("Scale <%f, %f, %f>\n", scale.x, scale.y, scale.z); NN_MATH_REPORT("Rotate <%f, %f, %f>\n", rotate.x, rotate.y, rotate.z); NN_MATH_REPORT("Translate<%f, %f, %f>\n", translate.x, translate.y, translate.z); if (bNewline) { NN_MATH_REPORT("\n"); } } } // namespace math } // namespace nn