IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 30, 2008, 11:13:15 AM (18 years ago)
Author:
eugene
Message:

allow functions to use FLT or INT vectors as appropriate; document valid types

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20081124/Ohana/src/opihi/mana/rawstars.c

    r20856 r20859  
    6666  v = (float *) buff[0].matrix.buffer;
    6767  for (i = 0; i < Np; i++) {
    68     x = xp[0].elements.Flt[i];
    69     y = yp[0].elements.Flt[i];
     68    x = (xp[0].type == OPIHI_FLT) ? xp[0].elements.Flt[i] : xp[0].elements.Int[i];
     69    y = (yp[0].type == OPIHI_FLT) ? yp[0].elements.Flt[i] : yp[0].elements.Int[i];
    7070    if (x < 0) continue;
    7171    if (x >= Nx) continue;
Note: See TracChangeset for help on using the changeset viewer.