예제 #1
0
 virtual double getOffset(const gpstk::CommonTime& t) const 
    throw()
 {
    if (!isOffsetValid(t))
       return 0;
    else
       return clockModel.Slope()*(t-baseTime) + clockModel.Intercept();
 };
예제 #2
0
파일: IImage.cpp 프로젝트: npapier/vgsdk
const uint32 IImage::computeIndexFromOffset( const uint32 offset ) const
{
    assert( isOffsetValid(offset) );

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

    return offset/sizeofPixel;
}
예제 #3
0
파일: IImage.cpp 프로젝트: npapier/vgsdk
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;
}