Thomas Geymayer
77955e5c3c
math/nasal: Add more SGRect members and nasal helper.
2014-04-15 10:07:01 +02:00
Torsten Dreyer
ea02453f63
fix typo
...
Thanks to Alex Romosan
2014-01-24 11:10:34 +01:00
James Turner
e5bca74b9d
std::string namespace fixes.
2013-06-27 10:14:08 +01:00
Thomas Geymayer
8896a59dff
Helper functions for SGRect and canvas::Element
2013-06-06 22:28:00 +02:00
Thomas Geymayer
e53c71543a
Move and rework pow to math/SGMisc
2013-04-28 15:43:02 +02:00
Thomas Geymayer
e08eda18d5
CMake: Create list of libs for testing only once
2013-03-15 23:21:38 +01:00
Thomas Geymayer
5441db9b18
Support image slice/scale-9 for CanvasImage.
2013-02-24 17:57:19 +01:00
Thomas Geymayer
979aea5212
Add SGMisc::seek helper
2013-02-08 12:12:15 +01:00
James Turner
9cac2c1457
Fix math test linkage.
2013-02-07 17:42:00 +00:00
Thomas Geymayer
0423aedffc
Revert to old way of including everything from SGMath.hxx
2012-12-23 01:30:41 +01:00
Thomas Geymayer
fd39808ed8
Nasal cppbindings: automatic conversion of vec2 to/from Nasal
2012-12-17 00:29:14 +01:00
Thomas Geymayer
50688e1159
Rename simgear::Rect to SGRect and make interface more similar to SGBox
2012-12-13 23:37:21 +01:00
Thomas Geymayer
8417fea3bf
Overload Rect::contains and add compound assignment operators to PropertyObject
2012-12-13 00:30:11 +01:00
Mathias Froehlich
914d3e6a2b
math: Add integer valued vector types.
2012-12-02 17:30:08 +01:00
Mathias Froehlich
420e43d47d
sphere: Implement sphere inside sphere.
2012-11-24 09:55:34 +01:00
Mathias Froehlich
f892d88c10
math: Implement SGLocation.
...
New simple class to encapsulate a cartesian position
and orientation pair with few handy methods.
2012-11-24 09:54:57 +01:00
Stuart Buchanan
279445d6bc
For clouds, use a RNG seed that only changes every 10 minutes.
...
This allows multi-process deploymentes to keep their clouds in sync.
2012-11-09 20:25:53 +00:00
Mathias Froehlich
b01693f426
Remove osg header from non simgearscene file.
2012-11-08 22:50:10 +01:00
Thomas Geymayer
f83c8828f0
Fix windows and headless build
2012-11-05 12:59:15 +01:00
Thomas Geymayer
b99f53fda3
Refactor Canvas and add some helpers.
...
- Refactor Canvas from FlightGear and fix lazy rendering with
recursive canvases.
- New classes PropertyBasedElement and PropertyBasedManager for
creating subsystems controlled by the property tree.
- New method parseColor to parse CSS 3 conformant color strings
(only basic color schemes supported)
- New Rect class representing a rectangle.
2012-11-04 14:12:05 +01:00
Mathias Froehlich
7bcf02a0b4
Handle isnan at a more central place.
...
Do not distribute architecture specific
code across a lot of places.
2012-09-27 18:44:14 +02:00
Mathias Froehlich
fcd1733787
Fix line segment plane intersect.
2012-09-27 18:21:13 +02:00
Frederic Bouvier
98ca36e8f5
MSVC has no std::isnan
2012-09-26 08:36:56 +02:00
James Turner
89d30acbc5
SGTime: use SGGeod, quieter init.
...
It's common to use SGTime to calculate the the Julian Date, without providing time-zone information. Don't warn in these cases, since the behaviour is fine.
2012-09-24 00:02:11 +01:00
James Turner
be405d2311
Add another overload of SGGeodesy::direct
2012-09-23 21:43:42 +01:00
James Turner
12f85b3d1f
Add an SG_UNUSED macro to SimGear.
...
Imitate Q_UNSUED from Qt, and provide a Simgear 'unused var' warning suppression macro. Fix up one place where the previous warning suppression attempt (assigning to self) was still producing a warning under clang.
2012-09-16 16:25:11 +01:00
James Turner
47d88bcfa7
Standardise SimGear libraries, for static vs shared.
...
Always create only two SimGear libraries: SimGearCore and SimGearStatic, regardless of whether we're building static or shared. This requires an updated to FindSimGear.cmake module, for the static configuration.
2012-09-16 16:04:08 +01:00
Mathias Froehlich
1212109c03
math: Remove obsolete commented out code.
2012-07-21 12:55:53 +02:00
Frederic Bouvier
cc37713a66
Remove redundant inclusion of math/SGMath.hxx
2012-05-05 11:19:20 +02:00
Mathias Froehlich
29462005b7
Fix typo in SGGeodesy.
...
Pointed out by Carl Godkin.
Thanks!
2012-04-01 17:50:49 +02:00
Mathias Froehlich
2cc5e776b3
math: Remove SGMath osg dependency.
...
Move osg dependent stuff from SGMath into simgear/scene/util/OsgMath.hxx.
Update includes in simgear to reflect this change.
Note that this change also requires an updated flightgear version.
2012-03-03 13:35:20 +01:00
Mathias Froehlich
57a3b0fd1e
math: Move lerp function into SGMisc.
2012-03-03 12:03:09 +01:00
ThorstenB
423eba3733
Alas. Fix #pragma magic for GCC <= 4.5.
...
push/pop was introduced for GCC4.6 only - so avoid it.
Also, properly fix the fgets warning.
2012-01-09 22:18:17 +01:00
ThorstenB
fddac2443d
More #pragma magic.
...
Same magic as for SGSphere.
2012-01-09 21:49:34 +01:00
ThorstenB
a89b9f6158
#581 , invalid gcc pragma syntax
...
Thanks to Olaf Flebbe.
2012-01-09 20:19:26 +01:00
Frederic Bouvier
d7931a28ce
MSVC: don't try to compile unknown pragma
2012-01-03 21:20:37 +01:00
Torsten Dreyer
306c58e7ed
Some more trivial warning fixes
2011-12-25 20:28:38 +01:00
Erik Hofman
368d280da2
surpress unitialized variuable warning for SGSphere() only
2011-12-20 10:08:20 +01:00
Erik Hofman
4faf727f1b
Do not initialize _center to save unneeded initialization time.
2011-12-20 10:00:33 +01:00
Erik Hofman
052ce499c9
Intialize the center to prevent a 'may be used uninitialized' warning
2011-12-19 15:25:58 +01:00
James Turner
42b7c48671
Move some OSG-dependant code into scene/util.
2011-11-29 10:23:09 +00:00
James Turner
75afee59c3
Get all the tests linking with shared-simgear, and duplicate the awkward core functions into a new file, pending a proper cleanup.
2011-11-28 23:22:43 +00:00
ThorstenB
7a52c2fa71
cmake: add option to disable building tests
2011-11-26 16:39:40 +01:00
James Turner
24c047c94e
Remove the remaining Makefiles from the code.
2011-11-01 09:28:26 +00:00
James Turner
6250f675db
Fixes for headless mode.
2011-10-23 17:56:28 +01:00
Mathias Froehlich
594095a363
Introduce quaternion finite difference method.
...
This implements a function for the quaternion implementation
that computes the angular velocity that matches an explicit euler
step that propagates from a starting quaternion orientation to a
destination quaternion orientation.
2011-09-01 17:11:25 +02:00
James Turner
5c6076d72d
Merge branch 'next' of gitorious.org:fg/simgear into next
2011-07-19 17:56:04 +01:00
James Turner
ee1901225b
Ooof, lurking PLIB reference in the tests
2011-07-19 17:55:40 +01:00
Mathias Froehlich
b61ba449fb
Fix case of SGGeometryTest.cxx
2011-07-19 18:54:02 +02:00
James Turner
d53e2fa8c1
Enable more unit-tests via CTest
2011-07-19 17:30:08 +01:00