FOUND
|
Classes | |
union | _d_u_ |
Union for converting a 64-bit floating point number from host byte order to network byte order and vice versa. More... | |
union | _f_u_ |
Union for converting a 32-bit floating point number from host byte order to network byte order and vice versa. More... | |
class | Action |
Action is an interface that wraps a function that does something. More... | |
class | ApproximateOrbitPropagationAlgorithm |
OrbitPropagationAlgorithm is a stage that propagates an orbit over a specified time period. More... | |
class | Attitude |
An Attitude is an immutable object that represents the orientation of a 3D point. More... | |
class | CalibrationAlgorithm |
The CalibrationAlgorithm is an interface for algorithms that calibrate our orientation to the reference orientation. More... | |
class | CalibrationPipelineExecutor |
CalibrationPipelineExecutor is the pipeline executor for the calibration pipeline. More... | |
class | Camera |
A Camera is a mutable object that represents a Camera. More... | |
struct | Component |
Represents a connected component in an image. More... | |
struct | DataFile |
Represents a complete serialized data file. More... | |
struct | DataFileHeader |
Represents the header of a data file used in the serialization process. More... | |
struct | DateTime |
DateTime represents a date and time. More... | |
class | DistanceDeterminationAlgorithm |
The DistanceDeterminationAlgorithm class houses the Distance Determination Algorithm. More... | |
class | DistancePipelineExecutor |
DistancePipelineExecutor is the pipeline executor for the distance determination pipeline. More... | |
struct | EarthSphericalVec3 |
Represents an Earth-centric Spherical Vector with time information. More... | |
struct | Edge |
Represents a 2D edge in an image. More... | |
class | EdgeDetectionAlgorithm |
The EdgeDetection Algorithm class houses the Edge Detection Algorithm. More... | |
class | EllipticDistanceDeterminationAlgorithm |
The DistanceDeterminationAlgorithm class houses the Distance Determination Algorithm. More... | |
class | EulerAngles |
An EulerAngle is a mutable Object representing Euler Angles of a 3D point. More... | |
class | FeatureDetectionVectorGenerationAlgorithm |
FeatureDetectionVectorGenerationAlgorithm figures out the distance vector of the satellite relative to earth by identifying features on earth. More... | |
struct | Image |
Represents an image. More... | |
class | IterativeSphericalDistanceDeterminationAlgorithm |
The IterativeSphericalDistanceDeterminationAlgorithm is a variation of the SphericalDistanceDeterminationAlgorithm algorithm in that it runs it repeatedly to use all the points given to it. More... | |
struct | LocationRecord |
Represents a single spatial data point with position and timestamp. More... | |
class | LoCEdgeDetectionAlgorithm |
The LoGEdgeDetection Algorithm class houses the Edge Detection Algorithm. More... | |
class | LOSTCalibrationAlgorithm |
The LostCalibrationAlgorithm class houses the calibration algorithm that uses the orientation information from LOST to calibrate the camera's local orientation with the reference orientation (i.e. More... | |
class | LOSTVectorGenerationAlgorithm |
The LOSTVectorGenerationAlgorithm class houses the a Vector Assembly Algorithm that calculates the position of the satellite using orientation information determined from LOST. More... | |
class | Mat3 |
A Mat3 is a mutable object that represents a 3x3 Matrix. More... | |
struct | OrbitParams |
OrbitParams defines the orbital parameters of a given orbit. More... | |
class | OrbitPipelineExecutor |
OrbitPipelineExecutor is the pipeline executor for the orbit determination pipeline. More... | |
class | OrbitPropagationAlgorithm |
The OrbitPropagationAlgorithm is an algorithm that propagates an orbit over a specified time period. More... | |
class | Pipeline |
Pipeline is composite Stage (i.e. More... | |
class | PipelineExecutor |
PipelineExecutor is an interface for classes that execute complex pipelines. More... | |
class | Quaternion |
A Quaternion is a mutable object that represents a Quaternion. More... | |
class | SimpleEdgeDetectionAlgorithm |
The SimpleEdgeDetection Algorithm class houses the Edge Detection Algorithm. More... | |
class | SphericalDistanceDeterminationAlgorithm |
The DistanceDeterminationAlgorithm class houses the Distance Determination Algorithm. More... | |
class | Stage |
A Stage is a data structure that wraps a function, and taking in parameter Input and returning Output. More... | |
struct | Vec2 |
A Vec2 is an immutable object that represents a 2D Vector. More... | |
class | Vec3 |
A Vec3 is a mutable object that represents a 3D Vector. More... | |
class | VectorGenerationAlgorithm |
The VectorGenerationAlgorithm class houses the Vector Assembly Algorithm. More... | |
Typedefs | |
typedef __float128 | PreciseDecimal |
Alias for very precise floating point numbers. | |
typedef std::vector< Vec2 > | Points |
The output for Edge Detection Algorithms (edge.hpp/cpp). | |
typedef Vec3 | PositionVector |
The output for Vector Assembly Algorithms (vectorize.hpp). | |
typedef std::vector< Edge > | Edges |
A collection of Edges. | |
typedef std::vector< Component > | Components |
A collection of Image Pixels. | |
typedef std::vector< LocationRecord > | LocationRecords |
A collection of Location Records. | |
typedef struct OrbitParams | OrbitParams |
The output for Orbit Trajectory Calculation Algorithms. | |
typedef std::pair< std::function< Vec3(int)>, std::function< Vec3(int)> > | KinematicPrediction |
The output for Kinematic Profile Completion. | |
typedef Pipeline< std::pair< EulerAngles, EulerAngles >, Quaternion > | CalibrationPipeline |
Pipeline for Calibration. | |
typedef Pipeline< Image, PositionVector > | DistancePipeline |
Pipeline for Distance Determination. | |
typedef Pipeline< LocationRecords, LocationRecords > | OrbitPipeline |
Pipeline for Orbital Determination. | |
Functions | |
int | main (int argc, char **argv) |
This is where the program starts. | |
CalibrationOptions | ParseCalibrationOptions (int argc, char **argv) |
Parses the calibration options from the command line to run the calibration algorithm. | |
DistanceOptions | ParseDistanceOptions (int argc, char **argv) |
Parses the distance options from the command line to run the distance determination algorithm. | |
OrbitOptions | ParseOrbitOptions (int argc, char **argv) |
Parses the orbit options from the command line to run the orbit determination algorithm. | |
Quaternion | SphericalToQuaternion (decimal ra, decimal dec, decimal roll) |
Converts Euler Angles into a quaternion. | |
Vec3 | SphericalToSpatial (const decimal ra, const decimal de) |
Converts spherical direction to a unit vector on the unit sphere. | |
void | SpatialToSpherical (const Vec3 &vec, decimal &ra, decimal &de) |
Converts a unit vector on the unit sphere to a spherical direction. | |
decimal | RadToArcSec (decimal rad) |
Calculates the approximate value for the inverse secant of an angle. | |
decimal | ArcSecToRad (decimal arcSec) |
Calculates an angle from an inverse secant value. | |
Vec2 | midpoint (const Vec2 &vec1, const Vec2 &vec2) |
Finds the midpoint between two different vectors. | |
Vec3 | midpoint (const Vec3 &vec1, const Vec3 &vec2) |
Finds the midpoint between two different vectors. | |
Vec3 | midpoint (const Vec3 &vec1, const Vec3 &vec2, const Vec3 &vec3) |
Finds the midpoint between three different vectors. | |
decimal | Angle (const Vec3 &vec1, const Vec3 &vec2) |
Determines the angle between two different vectors. | |
decimal | AngleUnit (const Vec3 &vec1, const Vec3 &vec2) |
Determines the angle between two different vectors. | |
decimal | Distance (const Vec2 &v1, const Vec2 &v2) |
Determines the Distance between two vectors. | |
decimal | Distance (const Vec3 &v1, const Vec3 &v2) |
Determines the Distance between two vectors. | |
Mat3 | QuaternionToDCM (const Quaternion &quat) |
Creates a Direction Cosine Matrix (DCM) off of a Quaternion. | |
Quaternion | DCMToQuaternion (const Mat3 &dcm) |
Creates a Quaternion based on a Direction Cosine Matrix (rotation matrix) | |
int64_t | SerializeLengthVec3 () |
Computes the size, in bytes, that a Vec3 object will take up. | |
void | SerializeVec3 (const Vec3 &vec, unsigned char *buffer) |
Serializes a Vec3 into a buffer. | |
Vec3 | DeserializeVec3 (const unsigned char *buffer) |
Deserializes a Vec3 from a buffer. | |
Quaternion | SphericalToQuaternion (EulerAngles angles) |
Converts Euler Angles into a quaternion. | |
constexpr decimal | RadToDeg (decimal rad) |
Converts an angle in radians to degrees. | |
constexpr decimal | DegToRad (decimal deg) |
Converts an angle in degrees to radians. | |
decimal | FovToFocalLength (decimal xFov, decimal xResolution) |
Provides the focal length of a camera for given parameters. | |
decimal | FocalLengthToFov (decimal focalLength, decimal xResolution, decimal pixelSize) |
Provides the FOV of a camera for given parameters. | |
DateTime | getUTCTime () |
Obtains the current UTC time in unix/epoch seconds. | |
DateTime | getUT1Time () |
Obtains the current UT1 time in unix/epoch seconds. | |
decimal | getJulianDateTime (DateTime &time) |
Obtains the current Julian date in decimal format. | |
decimal | getCurrentJulianDateTime () |
Obtains the current Julian date in decimal format. | |
decimal | getJulianDateTime (std::time_t epochs) |
Obtains the Julian date from the given epochs in seconds. | |
decimal | getGreenwichMeanSiderealTime (DateTime &time) |
Obtains the Greenwich Mean Sidereal Time in decimal format. | |
decimal | getCurrentGreenwichMeanSiderealTime () |
Obtians the current Greenwich Mean Sidereal Time in decimal format. | |
decimal | getGreenwichMeanSiderealTime (std::time_t epochs) |
Obtains the Greenwich Mean Sidereal Time in decimal format from the given epochs. | |
uint16_t | htons (uint16_t v) |
Converts a 16-bit integer from host byte order to network byte order. | |
uint16_t | ntohs (uint16_t v) |
Converts a 16-bit integer from network byte order to host byte order. | |
uint32_t | htonl (uint32_t v) |
Converts a 32-bit integer from host byte order to network byte order. | |
uint32_t | ntohl (uint32_t v) |
Converts a 32-bit integer from network byte order to host byte order. | |
uint64_t | htonl (uint64_t v) |
Converts a 64-bit integer from host byte order to network byte order. | |
uint64_t | ntohl (uint64_t v) |
Converts a 64-bit integer from network byte order to host byte order. | |
float | htonf (float v) |
Converts a float from network byte order to host byte order. | |
float | ntohf (float v) |
Converts a float from network byte order to host byte order. | |
double | ntohd (double v) |
Converts a double from network byte order to host byte order. | |
double | htond (double v) |
Converts a double from host byte order to network byte order. | |
decimal | htondec (decimal v) |
Converts a decimal from host byte order to network byte order. | |
decimal | ntohdec (decimal v) |
Converts a decimal from network byte order to host byte order. | |
uint32_t | calculateCRC32 (const void *data, size_t length) |
Calculates the CRC32 checksum for a given data buffer. | |
void | hton (DataFileHeader &header) |
Converts a DataFileHeader from host to network byte order. | |
void | ntoh (DataFileHeader &header) |
Converts a DataFileHeader from network to host byte order. | |
void | write (std::ostream &stream, const decimal &value) |
Writes a decimal value to the given output stream in network byte order. | |
void | read (std::istream &stream, decimal &value) |
Reads a decimal value from the given input stream. | |
void | write (std::ostream &stream, const uint64_t &value) |
Writes a 64-bit unsigned integer to the given output stream in network byte order. | |
void | read (std::istream &stream, uint64_t &value) |
Reads a 64-bit unsigned integer from the given input stream. | |
void | write (std::ostream &stream, const uint32_t &value) |
Writes a 32-bit unsigned integer to the given output stream in network byte order. | |
void | read (std::istream &stream, uint32_t &value) |
Reads a 32-bit unsigned integer from the given input stream in network byte order. | |
void | write (std::ostream &stream, const Quaternion &quat) |
Serializes an Quaternion to the given output stream. | |
void | read (std::istream &stream, Quaternion &quat) |
Reads Quaternion data from an input stream. | |
void | write (std::ostream &stream, const Vec3 &v) |
Serializes a Vec3 object to the given output stream. | |
void | read (std::istream &stream, Vec3 &v) |
Reads a Vec3 object from the given input stream. | |
void | write (std::ostream &stream, const LocationRecord &record) |
Serializes a LocationRecord object to the given output stream. | |
void | read (std::istream &stream, LocationRecord &record) |
Reads data from the input stream into a LocationRecord object. | |
void | serializeDataFile (const DataFile &data, std::ostream &stream) |
Serializes a DataFile object to an output stream. | |
DataFile | deserializeDataFile (std::istream &stream) |
Deserializes a DataFile object from an input stream. | |
DataFile | deserializeDataFile (std::istream &stream, const std::string &path) |
Deserializes a DataFile object from an input stream. | |
bool | isValidMagicNumber (const char magic[4]) |
Validates the magic number in the header. | |
DataFileHeader | readHeader (std::istream &stream) |
Reads only the header of a DataFile from an input stream. | |
bool | LabelPresent (int label, int *adjacentLabels, int size) |
Checks if a label is present in the list of adjacent labels. | |
void | UpdateComponent (Component &component, uint64_t index, Vec2 &pixel) |
Updates the component with the given pixel. | |
int | NWayEquivalenceAdd (const Image &image, uint64_t index, int &L, int adjacentLabels[4], int size, std::unordered_map< int, Component > &components, std::unordered_map< int, int > &equivalencies) |
Adds a pixel to some component, creating a new component if necessary. | |
Components | ConnectedComponentsAlgorithm (const Image &image, std::function< bool(uint64_t, const Image &)> Criteria) |
Computes the groups of components within the image. | |
EarthSphericalVec3 | GetEarthCoordinates (Vec3 &celestialVector, decimal gmst) |
Obtains a celestial vector within Earth's Rotating Frame, in longitude/lattitude/altitude. | |
unsigned char | strtouc (const std::string &str) |
Converts a string to an unsigned char. | |
size_t | strtosize (const std::string &str) |
decimal | strtodecimal (const std::string &str) |
Converts a string to a decimal. | |
EulerAngles | strtoea (const std::string &str) |
Converts a string to euler angles. | |
bool | strtobool (const std::string &str) |
Converts the string to a bool. | |
Image | strtoimage (const std::string &str) |
Converts a string to an image. | |
DataFile | strtodf (const std::string &str) |
LocationRecords | strtolr (const std::string &str) |
Converts a string to a vector of location records. | |
std::unique_ptr< CalibrationPipelineExecutor > | CreateCalibrationPipelineExecutor (CalibrationOptions &&options) |
Creates a CalibrationPipelineExecutor. | |
std::unique_ptr< DistancePipelineExecutor > | CreateDistancePipelineExecutor (DistanceOptions &&options) |
Creates a DistancePipelineExecutor. | |
std::unique_ptr< CalibrationAlgorithm > | ProvideCalibrationAlgorithm (CalibrationOptions &&options) |
Provides a CalibrationAlgorithm. | |
std::unique_ptr< EdgeDetectionAlgorithm > | ProvideEdgeDetectionAlgorithm (DistanceOptions &&options) |
Provides an EdgeDetectionAlgorithm. | |
std::unique_ptr< DistanceDeterminationAlgorithm > | ProvideDistanceDeterminationAlgorithm (DistanceOptions &&options) |
Provides a DistanceDeterminationAlgorithm. | |
std::unique_ptr< VectorGenerationAlgorithm > | ProvideVectorGenerationAlgorithm (DistanceOptions &&options) |
Provides a VectorGenerationAlgorithm. | |
Variables | |
const char | kNoDefaultArgument = 0 |
For macro processing. | |
const Mat3 | kIdentityMat3 |
3x3 identity matrix | |
typedef Pipeline<std::pair<EulerAngles, EulerAngles>, Quaternion> found::CalibrationPipeline |
Pipeline for Calibration.
typedef std::vector<Component> found::Components |
A collection of Image Pixels.
typedef Pipeline<Image, PositionVector> found::DistancePipeline |
Pipeline for Distance Determination.
typedef std::vector<Edge> found::Edges |
A collection of Edges.
typedef std::pair<std::function<Vec3(int)>,std::function<Vec3(int)> > found::KinematicPrediction |
The output for Kinematic Profile Completion.
Currently set to two functions that will tell you the position and velocity of the satellite at any given time
typedef std::vector<LocationRecord> found::LocationRecords |
A collection of Location Records.
typedef struct OrbitParams found::OrbitParams |
The output for Orbit Trajectory Calculation Algorithms.
Currently set to a struct that holds the orbit equations.
Pipeline for Orbital Determination.
typedef std::vector<Vec2> found::Points |
typedef Vec3 found::PositionVector |
The output for Vector Assembly Algorithms (vectorize.hpp).
Currently set to a 3D Vector that represents the satellite's position relative to Earth's coordinate system.
typedef __float128 found::PreciseDecimal |
Alias for very precise floating point numbers.
Determines the angle between two different vectors.
vec1 | The first vector |
vec2 | The second vector |
Determines the angle between two different vectors.
vec1 | The first vector |
vec2 | The second vector |
Calculates an angle from an inverse secant value.
arcSec | The arcsecant value |
uint32_t found::calculateCRC32 | ( | const void * | data, |
size_t | length | ||
) |
Calculates the CRC32 checksum for a given data buffer.
data | Pointer to the data buffer. |
length | The size of the data buffer in bytes. |
Components found::ConnectedComponentsAlgorithm | ( | const Image & | image, |
std::function< bool(uint64_t, const Image &)> | Criteria | ||
) |
Computes the groups of components within the image.
image | The image that defines the possible pixels |
Criteria | A function that accepts a pixel index and the image and returns true iff the pixel is part of the component |
|
inline |
Creates a CalibrationPipelineExecutor.
options | The options to create the pipeline executor from |
|
inline |
Creates a DistancePipelineExecutor.
options | The options to create the pipeline executor from |
Quaternion found::DCMToQuaternion | ( | const Mat3 & | dcm | ) |
Creates a Quaternion based on a Direction Cosine Matrix (rotation matrix)
dcm | The matrix holding the direction cosines |
Converts an angle in degrees to radians.
deg | The degrees of the angle |
DataFile found::deserializeDataFile | ( | std::istream & | stream | ) |
DataFile found::deserializeDataFile | ( | std::istream & | stream, |
const std::string & | path | ||
) |
Vec3 found::DeserializeVec3 | ( | const unsigned char * | buffer | ) |
Deserializes a Vec3 from a buffer.
buffer | The buffer to obtain the vector from. This parameter should point to the location of the Vec3 within the buffer. |
Determines the Distance between two vectors.
v1 | The first vector |
v2 | The second vector |
Determines the Distance between two vectors.
v1 | The first vector |
v2 | The second vector |
Provides the FOV of a camera for given parameters.
focalLength | The focal length |
xResolution | The horizontal resolution |
pixelSize | The size of a pixel in a Camera |
Provides the focal length of a camera for given parameters.
xFov | The horizontal field of view |
xResolution | The horizontal resolution |
decimal found::getCurrentGreenwichMeanSiderealTime | ( | ) |
Obtians the current Greenwich Mean Sidereal Time in decimal format.
decimal found::getCurrentJulianDateTime | ( | ) |
Obtains the current Julian date in decimal format.
EarthSphericalVec3 found::GetEarthCoordinates | ( | Vec3 & | celestialVector, |
decimal | gmst | ||
) |
Obtains a celestial vector within Earth's Rotating Frame, in longitude/lattitude/altitude.
celestialVector | The celestial vector to convert |
gmst | The current GMST value, in degrees |
Obtains the Greenwich Mean Sidereal Time in decimal format.
time | The DateTime to convert |
decimal found::getGreenwichMeanSiderealTime | ( | std::time_t | epochs | ) |
Obtains the Greenwich Mean Sidereal Time in decimal format from the given epochs.
epochs | The epochs in seconds |
Obtains the current Julian date in decimal format.
time | The DateTime to convert |
decimal found::getJulianDateTime | ( | std::time_t | epochs | ) |
Obtains the Julian date from the given epochs in seconds.
epochs | The epochs in seconds |
DateTime found::getUT1Time | ( | ) |
Obtains the current UT1 time in unix/epoch seconds.
DateTime found::getUTCTime | ( | ) |
Obtains the current UTC time in unix/epoch seconds.
void found::hton | ( | DataFileHeader & | header | ) |
Converts a DataFileHeader from host to network byte order.
header | The header to convert. |
|
inline |
Converts a double from host byte order to network byte order.
v | The double value to convert. |
Converts a decimal from host byte order to network byte order.
v | The decimal value to convert. |
|
inline |
Converts a float from network byte order to host byte order.
v | The float value to convert. |
|
inline |
Converts a 32-bit integer from host byte order to network byte order.
v | The integer to convert |
|
inline |
Converts a 64-bit integer from host byte order to network byte order.
v | The integer to convert |
|
inline |
Converts a 16-bit integer from host byte order to network byte order.
v | The integer to convert |
bool found::isValidMagicNumber | ( | const char | magic[4] | ) |
Validates the magic number in the header.
magic | The magic number to validate |
|
inline |
Checks if a label is present in the list of adjacent labels.
label | The label to check |
adjacentLabels | The list of adjacent labels |
size | The size of the list |
int found::main | ( | int | argc, |
char ** | argv | ||
) |
This is where the program starts.
argc | The number of arguments passed into the command line |
argv | The arguments passed into the command line |
Finds the midpoint between two different vectors.
vec1 | The first vector |
vec2 | The second vector |
Finds the midpoint between two different vectors.
vec1 | The first vector |
vec2 | The second vector |
Finds the midpoint between three different vectors.
vec1 | The first vector |
vec2 | The second vector |
vec3 | The third vector |
void found::ntoh | ( | DataFileHeader & | header | ) |
Converts a DataFileHeader from network to host byte order.
header | The header to convert. |
|
inline |
Converts a double from network byte order to host byte order.
v | The double value to convert. |
Converts a decimal from network byte order to host byte order.
v | The decimal value to convert. |
|
inline |
Converts a float from network byte order to host byte order.
v | The float value to convert. |
|
inline |
Converts a 32-bit integer from network byte order to host byte order.
v | The integer to convert |
|
inline |
Converts a 64-bit integer from network byte order to host byte order.
v | The integer to convert |
|
inline |
Converts a 16-bit integer from network byte order to host byte order.
v | The integer to convert |
|
inline |
Adds a pixel to some component, creating a new component if necessary.
image | The image to which the pixel belongs |
index | The index of the pixel |
L | The current label |
adjacentLabels | The labels of the adjacent components |
size | The number of adjacent labels |
components | The components that are part of the image |
equivalencies | The labels that are equivalent to each other |
Updates components with the new pixel as appropriate
CalibrationOptions found::ParseCalibrationOptions | ( | int | argc, |
char ** | argv | ||
) |
Parses the calibration options from the command line to run the calibration algorithm.
argc | The number of command-line arguments |
argv | The command line arguments |
DistanceOptions found::ParseDistanceOptions | ( | int | argc, |
char ** | argv | ||
) |
Parses the distance options from the command line to run the distance determination algorithm.
argc | The number of command-line arguments |
argv | The command line arguments |
OrbitOptions found::ParseOrbitOptions | ( | int | argc, |
char ** | argv | ||
) |
Parses the orbit options from the command line to run the orbit determination algorithm.
argc | The number of command-line arguments |
argv | The command line arguments |
std::unique_ptr< CalibrationAlgorithm > found::ProvideCalibrationAlgorithm | ( | CalibrationOptions && | options | ) |
Provides a CalibrationAlgorithm.
options | The options to derive the calibration algorithm from |
std::unique_ptr< DistanceDeterminationAlgorithm > found::ProvideDistanceDeterminationAlgorithm | ( | DistanceOptions && | options | ) |
Provides a DistanceDeterminationAlgorithm.
options | The options to derive the distance determination algorithm from |
std::unique_ptr< EdgeDetectionAlgorithm > found::ProvideEdgeDetectionAlgorithm | ( | DistanceOptions && | options | ) |
Provides an EdgeDetectionAlgorithm.
options | The options to derive the edge detection algorithm from |
std::unique_ptr< VectorGenerationAlgorithm > found::ProvideVectorGenerationAlgorithm | ( | DistanceOptions && | options | ) |
Provides a VectorGenerationAlgorithm.
options | The options to derive the vector generation algorithm from |
Mat3 found::QuaternionToDCM | ( | const Quaternion & | quat | ) |
Creates a Direction Cosine Matrix (DCM) off of a Quaternion.
quat | The quaternion to base the DCM off of |
Calculates the approximate value for the inverse secant of an angle.
rad | The angle, in radians |
Converts an angle in radians to degrees.
rad | The rad of the angle |
|
inline |
Reads a decimal value from the given input stream.
stream | The stream to read from |
value | The value to write into |
|
inline |
Reads data from the input stream into a LocationRecord object.
stream | The stream to read from |
record | The LocationRecord to write into |
|
inline |
Reads Quaternion data from an input stream.
stream | The stream to read from |
quat | The angles to write into |
|
inline |
Reads a 32-bit unsigned integer from the given input stream in network byte order.
stream | The stream to read from |
value | The value to write into |
|
inline |
Reads a 64-bit unsigned integer from the given input stream.
stream | The stream to read from |
value | The value to write into |
|
inline |
DataFileHeader found::readHeader | ( | std::istream & | stream | ) |
Reads only the header of a DataFile from an input stream.
stream | The input stream to read the header from. |
void found::serializeDataFile | ( | const DataFile & | data, |
std::ostream & | stream | ||
) |
int64_t found::SerializeLengthVec3 | ( | ) |
void found::SerializeVec3 | ( | const Vec3 & | vec, |
unsigned char * | buffer | ||
) |
Serializes a Vec3 into a buffer.
vec | The vector to serialize. |
buffer | The buffer to insert the vector into |
Converts a unit vector on the unit sphere to a spherical direction.
vec | The vector to convert from |
ra | The right ascension that will represent the right ascension of vec |
de | The declination that will represent the declination of vec |
Quaternion found::SphericalToQuaternion | ( | decimal | ra, |
decimal | dec, | ||
decimal | roll | ||
) |
Converts Euler Angles into a quaternion.
ra | The right ascension of the Euler Angles |
dec | The declination of the Euler Angles |
roll | The roll of the Euler Angles |
|
inline |
Converts Euler Angles into a quaternion.
angles | The euler angles to convert |
Converts spherical direction to a unit vector on the unit sphere.
ra | The right ascension of the direction in question |
de | The declination of the direction in question |
|
inline |
Converts the string to a bool.
str | The string to convert |
|
inline |
Converts a string to a decimal.
str | The string to convert |
|
inline |
|
inline |
Converts a string to euler angles.
str | The string to convert |
|
inline |
Converts a string to an image.
str | The string to convert |
std::runtime_error | if the image cannot be loaded |
|
inline |
Converts a string to a vector of location records.
str | The string to convert |
|
inline |
|
inline |
Converts a string to an unsigned char.
str | The string to convert |
Updates the component with the given pixel.
component | The component to update |
index | The index to add |
pixel | The pixel to add |
|
inline |
Writes a decimal value to the given output stream in network byte order.
stream | The stream to write into |
value | The value to read from |
|
inline |
Serializes a LocationRecord object to the given output stream.
stream | The stream to read from |
record | The record to write into |
|
inline |
Serializes an Quaternion to the given output stream.
stream | The stream to write into |
quat | The angles to read from |
|
inline |
Writes a 32-bit unsigned integer to the given output stream in network byte order.
stream | The stream to write into |
value | The value to read from |
|
inline |
Writes a 64-bit unsigned integer to the given output stream in network byte order.
stream | The stream to write into |
value | The value to read from |
|
inline |
const Mat3 found::kIdentityMat3 |
3x3 identity matrix
const char found::kNoDefaultArgument = 0 |
For macro processing.