FOUND
Loading...
Searching...
No Matches
attitude-utils.hpp File Reference
#include <memory>
#include "common/decimal.hpp"
Include dependency graph for attitude-utils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  found::Vec2
 A Vec2 is an immutable object that represents a 2D Vector. More...
 
class  found::Vec3
 A Vec3 is a mutable object that represents a 3D Vector. More...
 
class  found::Mat3
 A Mat3 is a mutable object that represents a 3x3 Matrix. More...
 
class  found::EulerAngles
 An EulerAngle is a mutable Object representing Euler Angles of a 3D point. More...
 
class  found::Quaternion
 A Quaternion is a mutable object that represents a Quaternion. More...
 
class  found::Attitude
 An Attitude is an immutable object that represents the orientation of a 3D point. More...
 

Namespaces

namespace  found
 

Functions

int64_t found::SerializeLengthVec3 ()
 Computes the size, in bytes, that a Vec3 object will take up.
 
void found::SerializeVec3 (const Vec3 &vec, unsigned char *buffer)
 Serializes a Vec3 into a buffer.
 
Vec3 found::DeserializeVec3 (const unsigned char *buffer)
 Deserializes a Vec3 from a buffer.
 
decimal found::Distance (const Vec2 &v1, const Vec2 &v2)
 Determines the Distance between two vectors.
 
decimal found::Distance (const Vec3 &v1, const Vec3 &v2)
 Determines the Distance between two vectors.
 
Vec2 found::midpoint (const Vec2 &vec1, const Vec2 &vec2)
 Finds the midpoint between two different vectors.
 
Vec3 found::midpoint (const Vec3 &vec1, const Vec3 &vec2)
 Finds the midpoint between two different vectors.
 
Vec3 found::midpoint (const Vec3 &vec1, const Vec3 &vec2, const Vec3 &vec3)
 Finds the midpoint between three different vectors.
 
Mat3 found::QuaternionToDCM (const Quaternion &quat)
 Creates a Direction Cosine Matrix (DCM) off of a Quaternion.
 
Quaternion found::DCMToQuaternion (const Mat3 &dcm)
 Creates a Quaternion based on a Direction Cosine Matrix (rotation matrix)
 
Quaternion found::SphericalToQuaternion (decimal ra, decimal dec, decimal roll)
 Converts Euler Angles into a quaternion.
 
Quaternion found::SphericalToQuaternion (EulerAngles angles)
 Converts Euler Angles into a quaternion.
 
Vec3 found::SphericalToSpatial (const decimal ra, const decimal de)
 Converts spherical direction to a unit vector on the unit sphere.
 
void found::SpatialToSpherical (const Vec3 &vec, decimal &ra, decimal &de)
 Converts a unit vector on the unit sphere to a spherical direction.
 
decimal found::Angle (const Vec3 &vec1, const Vec3 &vec2)
 Determines the angle between two different vectors.
 
decimal found::AngleUnit (const Vec3 &vec1, const Vec3 &vec2)
 Determines the angle between two different vectors.
 
constexpr decimal found::RadToDeg (decimal rad)
 Converts an angle in radians to degrees.
 
constexpr decimal found::DegToRad (decimal deg)
 Converts an angle in degrees to radians.
 
decimal found::RadToArcSec (decimal rad)
 Calculates the approximate value for the inverse secant of an angle.
 
decimal found::ArcSecToRad (decimal arcSec)
 Calculates an angle from an inverse secant value.