FBX C++ API Reference
fbxvector2.h
Go to the documentation of this file.
1 /****************************************************************************************
2 
3  Copyright (C) 2015 Autodesk, Inc.
4  All rights reserved.
5 
6  Use of this software is subject to the terms of the Autodesk license agreement
7  provided at the time of installation or download, or which otherwise accompanies
8  this software in either electronic or hard copy form.
9 
10 ****************************************************************************************/
11 
13 #ifndef _FBXSDK_CORE_MATH_VECTOR_2_H_
14 #define _FBXSDK_CORE_MATH_VECTOR_2_H_
15 
16 #include <fbxsdk/fbxsdk_def.h>
17 
18 #include <fbxsdk/fbxsdk_nsbegin.h>
19 
24 {
25 public:
30  FbxVector2();
32 
36  FbxVector2(const FbxVector2& pVector2);
37 
42  FbxVector2(double pX, double pY);
44 
53  FbxVector2& operator=(const FbxVector2& pVector2);
54 
59  void Set(double pX, double pY);
61 
71  FbxVector2 operator+(double pValue) const;
72 
78  FbxVector2 operator-(double pValue) const;
79 
85  FbxVector2 operator*(double pValue) const;
86 
92  FbxVector2 operator/(double pValue) const;
93 
99  FbxVector2& operator+=(double pValue);
100 
106  FbxVector2& operator-=(double pValue);
107 
113  FbxVector2& operator*=(double pValue);
114 
120  FbxVector2& operator/=(double pValue);
122 
130  FbxVector2 operator-() const;
131 
137  FbxVector2 operator+(const FbxVector2& pVector) const;
138 
144  FbxVector2 operator-(const FbxVector2& pVector) const;
145 
151  FbxVector2 operator*(const FbxVector2& pVector) const;
152 
158  FbxVector2 operator/(const FbxVector2& pVector) const;
159 
165  FbxVector2& operator+=(const FbxVector2& pVector);
166 
172  FbxVector2& operator-=(const FbxVector2& pVector);
173 
179  FbxVector2& operator*=(const FbxVector2& pVector);
180 
187  FbxVector2& operator/=(const FbxVector2& pVector);
188 
193  double DotProduct(const FbxVector2& pVector) const;
195 
204  bool operator==(const FbxVector2 & pVector) const;
205 
210  bool operator!=(const FbxVector2 & pVector) const;
212 
220  double Length() const;
221 
225  double SquareLength() const;
226 
231  double Distance(const FbxVector2& pVector) const;
232 
234  void Normalize();
236 
241  operator double* ();
243 
245  operator const double* () const;
247 
251  bool IsZero(int pSize=2) const;
252 
253  // Fix value like 1.#IND, 1.#INF, nan, and inf
254  void FixIncorrectValue();
255 };
256 
257 #include <fbxsdk/fbxsdk_nsend.h>
258 
259 #endif /* _FBXSDK_CORE_MATH_VECTOR_2_H_ */
FbxString operator+(const FbxString &pString1, const FbxString &pString2)
FbxString concatenation.
FBX SDK environment definition.
bool operator==(const FbxVectorTemplate2< T > &pVector) const
Definition: fbxtypes.h:210
FbxVectorTemplate2< T > & operator=(const T &pValue)
Definition: fbxtypes.h:208
bool operator!=(const FbxVectorTemplate2< T > &pVector) const
Definition: fbxtypes.h:211
#define FBXSDK_DLL
Definition: fbxarch.h:173
A two double mathematic vector class.
Definition: fbxvector2.h:23