cxVec2f cxRoundVec2f(cxVec2f v) { return cxVec2fv(cxRound(v.x), cxRound(v.y)); }
/* date2es ** Converts a standard Gregorian date and UT (YYYY/MM/DD HH:MM:SS) to ** ephemeris seconds past J2000, as required by CXFORM ** ** Modification History: ** 2003/11/11: Ryan Boller - initial version */ long date2es(int yyyy, int mm, int dd, int hh, int mm2, int ss) { return cxRound((gregorian_calendar_to_jd(yyyy, mm, dd, hh, mm2, ss) - 2451545) * 86400); }