Subversion Repositories filter_foundry

Rev

Rev 146 | Rev 166 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 146 Rev 154
Line 255... Line 255...
255
/* c2d(x,y) Angle displacement of the pixel at coordinates x,y */
255
/* c2d(x,y) Angle displacement of the pixel at coordinates x,y */
256
/* note, sign of y difference is negated, as we are dealing with top-down coordinates
256
/* note, sign of y difference is negated, as we are dealing with top-down coordinates
257
   angle is "observed" */
257
   angle is "observed" */
258
value_type ff_c2d(value_type x,value_type y){
258
value_type ff_c2d(value_type x,value_type y){
259
        // Behavior of FilterFoundry <1.7:
259
        // Behavior of FilterFoundry <1.7:
260
        //return RINT(TO_FFANGLE(atan2(-y,-x))); /* FIXME: why must we negate x here? */
260
        //return RINT(TO_FFANGLE(atan2(-y,-x)));
261
 
261
 
262
        // Behavior in FilterFoundry 1.7+: Matches FilterFactory
262
        // Behavior in FilterFoundry 1.7+: Matches FilterFactory
263
        return RINT(TO_FFANGLE(atan2(y,x)));
263
        return RINT(TO_FFANGLE(atan2(y,x)));
264
}
264
}
265
 
265