Expressions: Difference between revisions

Jump to navigation Jump to search
29 bytes removed ,  15 November 2015
update repo links; add break
(→‎Related content: + Conditions)
(update repo links; add break)
Line 1: Line 1:
{{Stub}}
{{Stub}}
{{-}}
'''Expressions''' (or '''SGExpressions''') are a feature of the SimGear library and provide a nice way of implementing complex math formulas using XML syntax.
'''Expressions''' (or '''SGExpressions''') are a feature of the SimGear library and provide a nice way of implementing complex math formulas using XML syntax.
They are supported in many systems within the FlightGear code.
They are supported in many systems within the FlightGear code.
Line 13: Line 14:


== Sample Expressions ==
== Sample Expressions ==
This is a sample expression for c = sqrt(a*a + b^2). Children/arguments are parsed in the order they appear in in the file (or the order in which they are set via property methods).
This is a sample expression for <code>c = sqrt(a*a + b^2)</code>. Children/arguments are parsed in the order they appear in in the file (or the order in which they are set via property methods).
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<expression>
<expression>
Line 72: Line 73:


=== Source code ===
=== Source code ===
* {{Git link|gitorious|fg/simgear|master|simgear/structure/SGExpression.hxx}}
* {{simgear file|simgear/structure/SGExpression.hxx}}
* {{Git link|gitorious|fg/simgear|master|simgear/structure/SGExpression.cxx}}
* {{simgear file|simgear/structure/SGExpression.cxx}}


[[Category:XML]]
[[Category:XML]]

Navigation menu