30 inline RowCol(
int r,
int c);
47 inline const char*
toString(
bool onlycol=
false)
const;
92 return RowCol( p.first, p.second );
112 {
return RowCol(
row()/denominator,
col()/denominator ); }
120 {
row() *= factor;
col() *= factor;
return *
this; }
124 {
return (((
unsigned int)
row())<<16)+ ((
unsigned int)
col() & 0xFFFF);}
126 {
return RowCol ( ll>>16, ((
short)(ll&0xFFFF)) ); }
IdxType & row()
Definition: posidxpair.h:45
const RowCol & operator-=(const RowCol &)
Definition: rowcol.h:115
#define mExpClass(module)
Definition: commondefs.h:160
int operator-(const DateInfo &di1, const DateInfo &di2)
Definition: dateinfo.h:129
const char * getUsrStr(const char *prefx, const char *sep, const char *postfx, bool only2nd) const
float counterClockwiseAngleTo(const RowCol &) const
bool fromString(const char *)
Definition: rowcol.h:136
const RowCol & operator*=(const RowCol &)
Definition: rowcol.h:117
#define od_int64
Definition: plftypes.h:36
const RowCol & operator+=(const RowCol &)
Definition: rowcol.h:113
const char * toString(bool onlycol=false) const
Definition: rowcol.h:130
float angleTo(const RowCol &) const
IdxPair with position indices; base class for BinID et al.
Definition: posidxpair.h:29
const RowCol & operator/=(const RowCol &)
Definition: rowcol.h:121
RowCol operator/(const RowCol &) const
Definition: rowcol.h:109
RowCol operator-() const
Definition: rowcol.h:103
RowCol()
Definition: rowcol.h:29
static const TypeSet< RowCol > & clockWiseSequence()
static IdxPair fromInt64(int64_t)
Definition: posidxpair.h:95
Position.
Definition: commontypes.h:42
RowCol RowColDelta
Definition: rowcol.h:17
RowCol operator+() const
Definition: rowcol.h:101
Coord3 operator*(double f, const Coord3 &b)
Definition: coord.h:130
IdxPair used for its row() and col().
Definition: rowcol.h:25
IdxType & col()
Definition: posidxpair.h:50
int toInt32() const
Definition: rowcol.h:123
Index_Type IdxType
Definition: idxpair.h:34
static RowCol fromInt32(int)
Definition: rowcol.h:125
RowCol getDirection() const
static RowCol fromInt64(int64_t)
Definition: rowcol.h:89
Export_Basic const char * toString(ViewStyle)
A pair of numbers; base class for BinID et al.
Definition: idxpair.h:30
RowCol operator*(const RowCol &) const
Definition: rowcol.h:105
bool parseUsrStr(const char *str, const char *prefx, const char *sep, const char *postfx)
float clockwiseAngleTo(const RowCol &rc) const