Exemple #1
0
 virtual double getOffset(const gpstk::CommonTime& t) const 
    throw()
 {
    if (!isOffsetValid(t))
       return 0;
    else
       return clockModel.Slope()*(t-baseTime) + clockModel.Intercept();
 };
Exemple #2
0
const uint32 IImage::computeIndexFromOffset( const uint32 offset ) const
{
    assert( isOffsetValid(offset) );

    const uint32 sizeofPixel = sizeOfPixel();
    assert( sizeofPixel > 0 );

    return offset/sizeofPixel;
}
Exemple #3
0
const vgm::Vec3i IImage::computePositionFromOffset( const uint32 offset ) const
{
    assert( isOffsetValid(offset) );

    const uint32 index = computeIndexFromOffset(offset);

    const vgm::Vec3i retVal = computePosition( index );

    assert( isValid(retVal) );

    return retVal;
}