LOST  0.0.1
LOST: Open-source Star Tracker
databases.cpp File Reference
#include "databases.hpp"
#include <stdlib.h>
#include <assert.h>
#include <math.h>
#include <vector>
#include <cstdint>
#include <algorithm>
#include <iostream>
#include "attitude-utils.hpp"
#include "serialize-helpers.hpp"
#include "star-utils.hpp"
Include dependency graph for databases.cpp:

Go to the source code of this file.

Classes

struct  lost::KVectorPair
 

Namespaces

 lost
 LOST starting point.
 

Functions

bool lost::isFlagSet (uint32_t dbFlags, uint32_t flag)
 
bool lost::CompareKVectorPairs (const KVectorPair &p1, const KVectorPair &p2)
 
void lost::SerializeKVectorIndex (SerializeContext *ser, const std::vector< decimal > &values, decimal min, decimal max, long numBins)
 K-vector index layout. More...
 
std::vector< KVectorPair > lost::CatalogToPairDistances (const Catalog &catalog, decimal minDistance, decimal maxDistance)
 pair K-vector database layout. More...
 
void lost::SerializePairDistanceKVector (SerializeContext *ser, const Catalog &catalog, decimal minDistance, decimal maxDistance, long numBins)
 Serialize a pair-distance KVector into buffer. More...
 
decimal lost::Clamp (decimal num, decimal low, decimal high)
 Return the value in the range [low,high] which is closest to num. More...
 
void lost::SerializeMultiDatabase (SerializeContext *ser, const MultiDatabaseDescriptor &dbs, uint32_t flags)