TrueReality  v0.1.1912
Vec3.h
Go to the documentation of this file.
1 /*
2 * True Reality Open Source Game and Simulation Engine
3 * Copyright © 2021 Acid Rain Studios LLC
4 *
5 * This library is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU Lesser General Public License as published by the Free
7 * Software Foundation; either version 3.0 of the License, or (at your option)
8 * any later version.
9 *
10 * This library is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13 * details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this library; if not, write to the Free Software Foundation, Inc.,
17 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * @author Maxim Serebrennik
20 */
21 #pragma once
22 
23 #include <trUtil/PlatformMacros.h>
24 #include <trBase/Vec3f.h>
25 #include <trBase/Vec3d.h>
26 
27 namespace trBase
28 {
29 #ifdef TR_USE_DOUBLE_VECTOR
30 
33  using Vec3 = Vec3d;
34 #else
35 
38  using Vec3 = Vec3f;
39 #endif
40 
41 
42  const Vec3 X_AXIS(1.0, 0.0, 0.0);
43  const Vec3 Y_AXIS(0.0, 1.0, 0.0);
44  const Vec3 Z_AXIS(0.0, 0.0, 1.0);
45 }
const Vec3 Z_AXIS(0.0, 0.0, 1.0)
Vec3f Vec3
General purpose 3D Vector.
Definition: Vec3.h:38
const Vec3 Y_AXIS(0.0, 1.0, 0.0)
const Vec3 X_AXIS(1.0, 0.0, 0.0)
General purpose 3D float Vector.
Definition: Vec3f.h:47