Project

General

Profile

SO3Engine
SO3Point.cpp
Go to the documentation of this file.
1/*
2-----------------------------------------------------------------------------
3This source file is part of OpenSpace3D
4For the latest info, see http://www.openspace3d.com
5
6Copyright (c) 2012 I-maginer
7
8This program is free software; you can redistribute it and/or modify it under
9the terms of the GNU Lesser General Public License as published by the Free Software
10Foundation; either version 2 of the License, or (at your option) any later
11version.
12
13This program is distributed in the hope that it will be useful, but WITHOUT
14ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
16
17You should have received a copy of the GNU Lesser General Public License along with
18this program; if not, write to the Free Software Foundation, Inc., 59 Temple
19Place - Suite 330, Boston, MA 02111-1307, USA, or go to
20http://www.gnu.org/copyleft/lesser.txt
21
22-----------------------------------------------------------------------------
23*/
24
25#include "SO3Utils/SO3Point.h"
26
27namespace SO3
28{
29
30// int implementation
31template<> const SPoint<int> SPoint<int>::ZERO(0, 0);
32template<> const SPoint<int> SPoint<int>::UNIT_X(1, 0);
33template<> const SPoint<int> SPoint<int>::UNIT_Y(0, 1);
36template<> const SPoint<int> SPoint<int>::UNIT_SCALE(1, 1);
37
38// short implementation
39template<> const SPoint<short> SPoint<short>::ZERO(0, 0);
40template<> const SPoint<short> SPoint<short>::UNIT_X(1, 0);
41template<> const SPoint<short> SPoint<short>::UNIT_Y(0, 1);
45
46// long implementation
47template<> const SPoint<long> SPoint<long>::ZERO(0, 0);
48template<> const SPoint<long> SPoint<long>::UNIT_X(1, 0);
49template<> const SPoint<long> SPoint<long>::UNIT_Y(0, 1);
53
54// unsigned int implementation
59
60// unsigned short implementation
65
66// unsigned long implementation
71
72// float implementation
73template<> const SPoint<float> SPoint<float>::ZERO(0.0f, 0.0f);
74template<> const SPoint<float> SPoint<float>::UNIT_X(1.0f, 0.0f);
75template<> const SPoint<float> SPoint<float>::UNIT_Y(0.0f, 1.0f);
76template<> const SPoint<float> SPoint<float>::NEGATIVE_UNIT_X(-1.0f, 0.0f);
77template<> const SPoint<float> SPoint<float>::NEGATIVE_UNIT_Y(0.0f, -1.0f);
78template<> const SPoint<float> SPoint<float>::UNIT_SCALE(1.0f, 1.0f);
79
80// double implementation
81template<> const SPoint<double> SPoint<double>::ZERO(0.0, 0.0);
82template<> const SPoint<double> SPoint<double>::UNIT_X(1.0, 0.0);
83template<> const SPoint<double> SPoint<double>::UNIT_Y(0.0, 1.0);
86template<> const SPoint<double> SPoint<double>::UNIT_SCALE(1.0, 1.0);
87
88}
static const SPoint ZERO
Definition SO3Point.h:43
static const SPoint NEGATIVE_UNIT_X
Definition SO3Point.h:46
static const SPoint UNIT_SCALE
Definition SO3Point.h:48
static const SPoint UNIT_X
Definition SO3Point.h:44
static const SPoint UNIT_Y
Definition SO3Point.h:45
static const SPoint NEGATIVE_UNIT_Y
Definition SO3Point.h:47