orbital-engine
    Preparing search index...

    Function compressionRatio

    • The scale factor compressVec would apply to a vector of magnitude r — exposed separately so a whole SET of related points (e.g. every sample around an orbit path) can be compressed by one shared ratio instead of each computing its own from its own magnitude. See compressVecByRatio's own comment for why that distinction matters.

      Parameters

      • r: number

      Returns number