1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     math_Vector4.cpp
4 
5   Copyright (C)2009 Nintendo Co., Ltd.  All rights reserved.
6 
7   These coded instructions, statements, and computer programs contain
8   proprietary information of Nintendo of America Inc. and/or Nintendo
9   Company Ltd., and are protected by Federal copyright law.  They may
10   not be disclosed to third parties or copied or duplicated in any form,
11   in whole or in part, without the prior written consent of Nintendo.
12 
13   $Rev: 12449 $
14  *---------------------------------------------------------------------------*/
15 
16 #include <nn/math.h>
17 
18 #include <nn/math/math_Vector4.h>
19 
20 #if !defined(NN_MATH_AS_INLINE)
21 #include <nn/math/inline/math_Vector4.ipp>
22 #endif
23 
24 namespace nn { namespace math {
25 
26 /* ------------------------------------------------------------------------
27         VEC4
28    ------------------------------------------------------------------------ */
29 
30 /*!--------------------------------------------------------------------------*
31   Name:         VEC4::Report
32 
33   @brief        ベクトルの内容をデバッグ出力に書き出します。
34 
35   @param[in]    bNewline  true なら出力の最後に改行を出力します。
36   @param[in]    name      ベクトルの名前を指定します。NULL指定可能です。
37 
38   @return       なし
39  *---------------------------------------------------------------------------*/
40 void
Report(bool bNewline,const char * name) const41 VEC4::Report(bool bNewline, const char* name) const
42 {
43     if (name)
44         NN_MATH_REPORT("%s", name);
45     else
46         NN_MATH_REPORT("VEC4");
47 
48     NN_MATH_REPORT("<%f, %f, %f, %f>", x, y, z, w);
49     if (bNewline)
50         NN_MATH_REPORT("\n");
51 }
52 
53 }  // namespace math
54 }  // namespace nn
55