pmc/surface.cc
changeset 65 76514757b0d6
parent 54 c064ce9f40f5
child 77 49e0babccb23
equal deleted inserted replaced
64:993b97c4ad2d 65:76514757b0d6
     1 /**
     1 /**
     2  * test/demos/pmc/surface.cc
     2  * test/demos/pmc/surface.cc
     3  * Copyright (C) 2008 Markus Broeker
     3  * Copyright (C) 2008 Markus Broeker
     4  */
     4  */
     5 
     5 
     6 #include <surface.h>
     6 #include <surface.hpp>
     7 
     7 
     8 #define max(a,b) (((a) > (b)) ? (a) : (b))
     8 #define max(a,b) (((a) > (b)) ? (a) : (b))
     9 #define min(a,b) (((a) < (b)) ? (a) : (b))
     9 #define min(a,b) (((a) < (b)) ? (a) : (b))
    10 #define abs(a) (((a)<0) ? -(a) : (a))
    10 #define abs(a) (((a)<0) ? -(a) : (a))
    11 #define sign(a) (((a)<0) ? -1 : (a)>0 ? 1 : 0)
    11 #define sign(a) (((a)<0) ? -1 : (a)>0 ? 1 : 0)