~hidravfx-dev-team/hidravfx/trunk

« back to all changes in this revision

Viewing changes to src/mathplus.h

  • Committer: Laszlo.simon
  • Date: 2011-03-13 21:36:23 UTC
  • Revision ID: git-v1:fcdbb40344ba0f369437bb144348dbb1b1b201a5
Basic analytix texture generation added.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 
11
11
#define PI 3.14159265358979323846
12
12
 
 
13
static inline double sign(double a) { return (a > 0 ? 1 : a<0 ? -1 : 0); }
13
14
static inline double sqr(double a) { return (a * a); }
14
15
static inline double min(double a, double b) { return (a < b ? a : b ); }
15
16
static inline double max(double a, double b) { return (a > b ? a : b ); }