tf2 rolling
tf2 maintains the relationship between coordinate frames in a tree structure buffered in time, and lets the user transform points, vectors, etc between any two coordinate frames at any desired point in time.
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Functions
Vector3.hpp File Reference
#include <cmath>
#include "Scalar.hpp"
#include "MinMax.hpp"
#include "tf2/visibility_control.h"
Include dependency graph for Vector3.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  tf2::Vector3
 tf2::Vector3 can be used to represent 3D points and vectors. It has an un-used w component to suit 16-byte alignment when tf2::Vector3 is stored in containers. This extra component can be used by derived classes (Quaternion?) or by user Ideally, this class should be replaced by a platform optimized TF2SIMD version that keeps the data in registers More...
 
class  tf2::tf2Vector4
 
struct  tf2::Vector3FloatData
 
struct  tf2::Vector3DoubleData
 

Namespaces

namespace  tf2
 

Macros

#define Vector3Data   Vector3DoubleData
 
#define Vector3DataName   "Vector3DoubleData"
 

Functions

Vector3 tf2::operator+ (const Vector3 &v1, const Vector3 &v2)
 Return the sum of two vectors (Point symantics)
 
Vector3 tf2::operator* (const Vector3 &v1, const Vector3 &v2)
 Return the elementwise product of two vectors.
 
Vector3 tf2::operator- (const Vector3 &v1, const Vector3 &v2)
 Return the difference between two vectors.
 
Vector3 tf2::operator- (const Vector3 &v)
 Return the negative of the vector.
 
Vector3 tf2::operator* (const Vector3 &v, const tf2Scalar &s)
 Return the vector scaled by s.
 
Vector3 tf2::operator* (const tf2Scalar &s, const Vector3 &v)
 Return the vector scaled by s.
 
Vector3 tf2::operator/ (const Vector3 &v, const tf2Scalar &s)
 Return the vector inversely scaled by s.
 
Vector3 tf2::operator/ (const Vector3 &v1, const Vector3 &v2)
 Return the vector inversely scaled by s.
 
tf2Scalar tf2::tf2Dot (const Vector3 &v1, const Vector3 &v2)
 Return the dot product between two vectors.
 
tf2Scalar tf2::tf2Distance2 (const Vector3 &v1, const Vector3 &v2)
 Return the distance squared between two vectors.
 
tf2Scalar tf2::tf2Distance (const Vector3 &v1, const Vector3 &v2)
 Return the distance between two vectors.
 
tf2Scalar tf2::tf2Angle (const Vector3 &v1, const Vector3 &v2)
 Return the angle between two vectors.
 
Vector3 tf2::tf2Cross (const Vector3 &v1, const Vector3 &v2)
 Return the cross product of two vectors.
 
tf2Scalar tf2::tf2Triple (const Vector3 &v1, const Vector3 &v2, const Vector3 &v3)
 
Vector3 tf2::lerp (const Vector3 &v1, const Vector3 &v2, const tf2Scalar &t)
 Return the linear interpolation between two vectors.
 
void tf2::tf2SwapScalarEndian (const tf2Scalar &sourceVal, tf2Scalar &destVal)
 tf2SwapVector3Endian swaps vector endianness, useful for network and cross-platform serialization
 
void tf2::tf2SwapVector3Endian (const Vector3 &sourceVec, Vector3 &destVec)
 tf2SwapVector3Endian swaps vector endianness, useful for network and cross-platform serialization
 
void tf2::tf2UnSwapVector3Endian (Vector3 &vector)
 tf2UnSwapVector3Endian swaps vector endianness, useful for network and cross-platform serialization
 
void tf2::tf2PlaneSpace1 (const Vector3 &n, Vector3 &p, Vector3 &q)
 

Macro Definition Documentation

◆ Vector3Data

#define Vector3Data   Vector3DoubleData

◆ Vector3DataName

#define Vector3DataName   "Vector3DoubleData"