decimad
02bb410cdb
Refactor COMPOSITOR/OPENGL_COMPOSITOR to enable customization of scene rendering and presentation
9 years ago
jean-pierre charras
f532057d05
Fix incompatibility between basic_gal (which used angles in degrees in rotation) and other gal layers (which used radians in rotation). Rotation angles are now in radians.
Fix erroneous optimization in VECTOR2<T>::Rotate (which was made for angles in degrees): Angles are in radians, and only 0 rd rotation is skipped ( case very frequent, especially in eeschema)
10 years ago
jean-pierre charras
5da341d1fc
Optimize VECTOR2::Rotation for 0, 90, 180 and -90 degrees by avoiding time consumming calculations.
10 years ago
Simon Richter
ff4febc7a8
Clarify atan2 overloads
In the C++ standard, this function is only defined for floating point
types, and integers cannot be implicitly converted. Using explicit
conversions avoids a GCC specific extension to the standard library.
10 years ago
Maciej Suminski
80885a4635
Fixed a few warnings.
10 years ago
Tomasz Włostowski
8a4bf35b5b
math: added OPT_BOX2 type
11 years ago
jean-pierre charras
24f516f6ae
Fix many doxygen warnings (due to missing info, old comments, typo ...) when building the doxygen doc.
11 years ago
Maciej Suminski
cce6e27096
Various fixes to geometry & math library.
12 years ago
Maciej Suminski
c7fa57faf6
Changed the way of handling BOX2 traits (used std::numeric_limits).
12 years ago
Maciej Suminski
505b38416d
Removed a few memory leaks.
12 years ago
Maciej Suminski
bc305859b2
Mainly case changes.
12 years ago
Maciej Suminski
0ac3e1fbf2
Namespace KiGfx->KIGFX.
template<> -> template <>
Some more reformatting according to uncrustify results.
12 years ago
Maciej Suminski
22045b61ea
Converted tabs to spaces. Removed trailing whitespaces.
12 years ago
Maciej Suminski
43b5aa4c8d
Fixed Mac OS build & removed one warning.
12 years ago
Maciej Sumiński
a6a1af9d75
Restored previous version of math_utils.h. WARNING: Mac OS build is probably broken now.
12 years ago
Maciej Suminski
7837dfa3ac
Fixed build for Mac OS
12 years ago
tomasz.wlostowski@cern.ch
da2f63bf31
math/vector2d.h: removed unused code, correct rounding in Resize()
12 years ago
tomasz.wlostowski@cern.ch
20eedfd7dc
math/math_util.h: fixed signedness bug in rescale()
12 years ago
tomasz.wlostowski@cern.ch
6639c2d8db
math/box2.h: normalize on construction, minor compilation warning fix
12 years ago
Maciej Suminski
862d5a4bf2
Added scalar addition and subtraction operators.
12 years ago
Maciej Suminski
3412e82799
Copyright change
13 years ago
Maciej Suminski
53ec1efc1d
Copyright notices fix.
13 years ago
Maciej Suminski
84239542b7
Fixed code formatting.
13 years ago
Maciej Suminski
7e0a44e4af
Added template MATRIX3x3 for handling general 3x3 matrices (for future usage in GAL)
13 years ago
Maciej Suminski
30e1aaec26
Replacement of classes BOX2 and VECTOR2 with their extended versions
include/vector2d.h: Removed old version
include/math/math_util.h: rescale() for VECTOR2
include/math/vector2d.h: New version of VECTOR2
include/math/box2.h: New version of BOX2
common/drawframe.cpp: Refactorization of code, so it is compatible with new classes
include/plot_common.h, pcbnew/basepcbframe.cpp: Changed header inclusion path
CMakeLists.txt: Added definition to turn on WX_COMPATIBILITY for replacement classes
13 years ago