1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     math_Quaternion.cpp
4   Copyright (C)2009 Nintendo Co., Ltd.  All rights reserved.
5   These coded instructions, statements, and computer programs contain
6   proprietary information of Nintendo of America Inc. and/or Nintendo
7   Company Ltd., and are protected by Federal copyright law. They may
8   not be disclosed to third parties or copied or duplicated in any form,
9   in whole or in part, without the prior written consent of Nintendo.
10   $Rev: 12449 $
11  *---------------------------------------------------------------------------
12 
13 
14 */
15 
16 #include <nn/math.h>
17 
18 #include <cmath>
19 #include <nn/math/math_Quaternion.h>
20 
21 #if !defined(NN_MATH_AS_INLINE)
22 #include <nn/math/inline/math_Quaternion.ipp>
23 #endif
24 
25 
26 namespace nn { namespace math {
27 
28 
29 /*!--------------------------------------------------------------------------*
30   Name:         QUAT::Report
31 
32 
33 
34 
35 
36 
37 
38  *---------------------------------------------------------------------------*/
39 void
Report(bool bNewline,const char * name) const40 QUAT::Report(bool bNewline, const char* name) const
41 {
42     if (name) { NN_MATH_REPORT("%s", name); }
43     else { NN_MATH_REPORT("QUAT"); }
44 
45     NN_MATH_REPORT("<%f, %f, %f, %f>", x, y, z, w);
46 
47     if (bNewline) { NN_MATH_REPORT("\n"); }
48 }
49 
50 
51 }}  // nw::math
52 
53