Commit Graph

101 Commits

Author SHA1 Message Date
Hans-Christian Ebke
580e5526d8 C++11: VectorT now also accepts non-arithmetic types as Scalar. 2015-11-19 15:20:41 +01:00
Hans-Christian Ebke
07fa145057 C++11: Fixed VectorT::normalize_cond() implementation. 2015-11-19 14:09:03 +01:00
Hans-Christian Ebke
784adb9744 C++11: Made VectorT::size() and VectorT::dim() constexpr. 2015-11-19 14:08:42 +01:00
Hans-Christian Ebke
687da4e08f C++11: Added static_asserts to component-wise constructor. 2015-11-19 11:10:28 +01:00
Hans-Christian Ebke
21cc0acab5 C++11: Explicitly defined default copy/move c'tor and operator=. 2015-11-19 11:09:53 +01:00
Hans-Christian Ebke
9bac315198 C++11: Fixed VectorT so it compiles with clang as well. 2015-11-19 10:26:45 +01:00
Hans-Christian Ebke
b0f7f8b0f3 Fixed VectorT::operator| and operator>>. 2015-11-18 15:52:20 +01:00
Hans-Christian Ebke
287da20912 C++11: Reimplemented VectorT without macros. 2015-11-18 15:11:48 +01:00
Janis Born
11c9946934 fix generic VectorT ctor for non float-convertible scalar types 2015-11-17 11:37:23 +01:00
Hans-Christian Ebke
706b065593 C++11: Fixed clang warning about missing braces. 2015-11-12 15:52:49 +01:00
Hans-Christian Ebke
0d619f33d3 C++11: Create version of homogenized() for C++11 branch (without macros). 2015-11-10 16:08:53 +01:00
Hans-Christian Ebke
dfcc98c845 C++11: Do CMake-less C++11 checking. 2015-11-10 15:00:19 +01:00
Hans-Christian Ebke
dda4b41cac C++11: Got rid of narrowing conversion warnings in legacy code.
Added explicit static_cast along with static SFINAE checks to VectorT
constructor.
2015-11-09 22:55:42 +01:00
Hans-Christian Ebke
26914cba92 C++11: Legacy incompatibility fixes for VectorT C++11 features. 2015-11-09 21:21:19 +01:00
Hans-Christian Ebke
c2c627ed4d C++11: Added _htmlColor literal operator.
Allows inline specification of colors in HTML syntax.
2015-11-09 18:51:00 +01:00
Hans-Christian Ebke
97ccb1d641 Modernized VectorT constructors in C++11 branch.
* Less redundancy.
* We can now make some of the VectorT constructors constexpr which is
useful for other features.
2015-11-09 18:46:39 +01:00
Matthias Möller
e9431e6557 fix compile error on vector scalar multiplication when scalar type differs of vector scalar type and the scalar was lhs
closes #2367

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1291 fdac6126-5c0c-442c-9429-916003d36597
2015-06-18 11:53:05 +00:00
Matthias Möller
ed3155284c - move iostream from header to source files.
- replace some iostreams to o/istreams only
- some minor include fixes

closes #2489

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1278 fdac6126-5c0c-442c-9429-916003d36597
2015-06-09 08:58:41 +00:00
Jan Möbius
fd4bcb39ea Typo
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1258 fdac6126-5c0c-442c-9429-916003d36597
2015-04-28 13:07:46 +00:00
Jan Möbius
07ad20793d Fixed bad typo in comment
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1257 fdac6126-5c0c-442c-9429-916003d36597
2015-04-28 11:54:17 +00:00
Jan Möbius
0a4c1dc206 Get rid of the old ACGMakeFiles
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1253 fdac6126-5c0c-442c-9429-916003d36597
2015-04-28 11:35:09 +00:00
Jan Möbius
83486e0b5f Relicense to BSD
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1252 fdac6126-5c0c-442c-9429-916003d36597
2015-04-28 11:33:32 +00:00
Matthias Möller
c8a634f365 - compiler error instead of run-time error when using a constructor which doesn't belongs to the vector's dimension
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1194 fdac6126-5c0c-442c-9429-916003d36597
2015-01-14 13:13:14 +00:00
Matthias Möller
0a32eb9ea5 add specializations for 5/6 dimension vectors
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1193 fdac6126-5c0c-442c-9429-916003d36597
2015-01-14 13:11:23 +00:00
Jan Möbius
b3778b230f Updated copyright headers
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1188 fdac6126-5c0c-442c-9429-916003d36597
2015-01-05 15:34:10 +00:00
Jan Möbius
68a3ff3136 The annual License Header Bump (Sorry for the rebuilds ;-) )
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@990 fdac6126-5c0c-442c-9429-916003d36597
2014-02-05 09:01:07 +00:00
Jan Möbius
51f4f26300 Fixed more warnings
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@933 fdac6126-5c0c-442c-9429-916003d36597
2013-08-15 08:43:04 +00:00
Jan Möbius
29011e25d2 Updated license headers
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@922 fdac6126-5c0c-442c-9429-916003d36597
2013-08-11 10:26:11 +00:00
Matthias Möller
20b17c450a using c++ headers in c++ files
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@837 fdac6126-5c0c-442c-9429-916003d36597
2013-06-12 13:14:36 +00:00
Jan Möbius
3d72b7dbc1 vector_type min(const vector_type& _rhs) and vector_type max(const vector_type& _rhs) are declared const now. (Thanks to Vladimir Chalupecky for the hint)
minimize and maximize return vector_type& (reference) instead of vector_type (value) to allow chaining p.minimize(p1).minimize(p2). (Thanks to Vladimir Chalupecky for the hint)



git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@822 fdac6126-5c0c-442c-9429-916003d36597
2013-04-02 12:39:47 +00:00
Jan Möbius
0f9d7dcb41 Replaced fabs by the std methods to fix errors when using norms with double vectors
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@775 fdac6126-5c0c-442c-9429-916003d36597
2012-12-05 17:59:57 +00:00
Jan Möbius
f3312397a5 Updated License Headers
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@736 fdac6126-5c0c-442c-9429-916003d36597
2012-10-08 07:30:49 +00:00
Jan Möbius
9875b209c6 Write a float
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@724 fdac6126-5c0c-442c-9429-916003d36597
2012-10-01 07:11:39 +00:00
Mike Kremer
5834e277f7 - add dll export macros
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@699 fdac6126-5c0c-442c-9429-916003d36597
2012-09-24 10:10:22 +00:00
Jan Möbius
4c33a61404 Fixed documentation warnings
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@564 fdac6126-5c0c-442c-9429-916003d36597
2012-03-21 16:06:55 +00:00
Jan Möbius
a1b1a51251 Get rid of doxygen warning
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@562 fdac6126-5c0c-442c-9429-916003d36597
2012-03-21 15:48:01 +00:00
Hans-Christian Ebke
b240c21f7c Added normalized() to VectorT.
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@557 fdac6126-5c0c-442c-9429-916003d36597
2012-03-19 08:25:50 +00:00
Jan Möbius
2a8b1dd832 Fixed wrong ifdef. (Thanks to Peter Newman)
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@536 fdac6126-5c0c-442c-9429-916003d36597
2012-02-24 07:30:44 +00:00
Jan Möbius
20218b6df1 Test to get rid of windows warning
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@518 fdac6126-5c0c-442c-9429-916003d36597
2012-01-20 10:52:00 +00:00
Jan Möbius
48c8d78dc4 Test to get rid of windows warning
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@517 fdac6126-5c0c-442c-9429-916003d36597
2012-01-20 10:48:56 +00:00
Jan Möbius
c4570a4b86 Added normal cone type to OpenMesh
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@458 fdac6126-5c0c-442c-9429-916003d36597
2011-11-16 09:27:12 +00:00
Mike Kremer
0b1206adca Avoid unnecessary warnings about extra ";"
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@393 fdac6126-5c0c-442c-9429-916003d36597
2011-05-24 10:22:17 +00:00
Jan Möbius
4fdd4c2adc Updated license headers
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@362 fdac6126-5c0c-442c-9429-916003d36597
2011-01-26 09:21:12 +00:00
Mike Kremer
eba601f190 Added infinity norm to vector class
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@340 fdac6126-5c0c-442c-9429-916003d36597
2010-11-12 10:08:54 +00:00
Jan Möbius
8480b84bb4 Added some vector norm functions for L1 norm, and absolute mean,max,min(Thanks to Michal Nociar)
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@339 fdac6126-5c0c-442c-9429-916003d36597
2010-11-11 17:04:37 +00:00
Mike Kremer
d51c08726d Corrected some expression that caused a compiler warning.
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@337 fdac6126-5c0c-442c-9429-916003d36597
2010-09-10 12:21:23 +00:00
Mike Kremer
a9f4169bb7 Added preprocessor directives such that doxygen correctly parses the vector template class.
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@336 fdac6126-5c0c-442c-9429-916003d36597
2010-09-10 12:13:59 +00:00
Jan Möbius
dc2abcd426 Added missing include (Thanks to Justin Bronder
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@328 fdac6126-5c0c-442c-9429-916003d36597
2010-07-02 14:54:35 +00:00
Jan Möbius
34141f8d9a Changed license Header to 2010
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@325 fdac6126-5c0c-442c-9429-916003d36597
2010-06-17 10:45:58 +00:00
Jan Möbius
5246b77da6 Updated License to LGPL3 with additional template and macro exceptions
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@137 fdac6126-5c0c-442c-9429-916003d36597
2009-06-04 08:46:29 +00:00