libRocket
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
MathTypes.h
Go to the documentation of this file.
1 /*
2  * This source file is part of libRocket, the HTML/CSS Interface Middleware
3  *
4  * For the latest information, see http://www.librocket.com
5  *
6  * Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd
7  *
8  * Permission is hereby granted, free of charge, to any person obtaining a copy
9  * of this software and associated documentation files (the "Software"), to deal
10  * in the Software without restriction, including without limitation the rights
11  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12  * copies of the Software, and to permit persons to whom the Software is
13  * furnished to do so, subject to the following conditions:
14  *
15  * The above copyright notice and this permission notice shall be included in
16  * all copies or substantial portions of the Software.
17  *
18  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24  * THE SOFTWARE.
25  *
26  */
27 
28 #ifndef ROCKETCOREMATHTYPES_H
29 #define ROCKETCOREMATHTYPES_H
30 
31 #include "Header.h"
32 #include "Vector2.h"
33 #include "Vector3.h"
34 #include "Vector4.h"
35 
36 namespace Rocket {
37 namespace Core {
38 
39 // Define common Vector2 types.
42 ROCKETCORE_API Vector2i operator*(int lhs, const Vector2i& rhs);
43 ROCKETCORE_API Vector2f operator*(float lhs, const Vector2f& rhs);
44 
45 // Define common Vector3 types.
46 typedef Vector3< int > Vector3i;
47 typedef Vector3< float > Vector3f;
48 ROCKETCORE_API Vector3i operator*(int lhs, const Vector3i& rhs);
49 ROCKETCORE_API Vector3f operator*(float lhs, const Vector3f& rhs);
50 
51 // Define common Vector4 types.
52 typedef Vector4< int > Vector4i;
53 typedef Vector4< float > Vector4f;
54 ROCKETCORE_API Vector4i operator*(int lhs, const Vector4i& rhs);
55 ROCKETCORE_API Vector4f operator*(float lhs, const Vector4f& rhs);
56 
57 }
58 }
59 
60 #endif
#define ROCKETCORE_API
Definition: Header.h:73
Vector2< int > Vector2i
Definition: MathTypes.h:40
Definition: Clipboard.h:33
Vector4< float > Vector4f
Definition: MathTypes.h:53
Vector3< int > Vector3i
Definition: MathTypes.h:46
Vector4< int > Vector4i
Definition: MathTypes.h:52
Vector3< float > Vector3f
Definition: MathTypes.h:47
Vector2< float > Vector2f
Definition: MathTypes.h:41
ROCKETCORE_API Vector2i operator*(int lhs, const Vector2i &rhs)