scenario_simulator_v2 C++ API
Classes | Functions | Variables
test_vector3.cpp File Reference
#include <gtest/gtest.h>
#include <cmath>
#include <geometry/vector3/hypot.hpp>
#include <geometry/vector3/inner_product.hpp>
#include <geometry/vector3/internal_angle.hpp>
#include <geometry/vector3/norm.hpp>
#include <geometry/vector3/normalize.hpp>
#include <geometry/vector3/operator.hpp>
#include "../expect_eq_macros.hpp"
#include "../test_utils.hpp"
Include dependency graph for test_vector3.cpp:

Classes

struct  CustomVector3< T >
 Custom Vector3 struct using T type with multiplication and division operators. More...
 

Functions

 TEST (Vector3, hypot_msgVector)
 
 TEST (Vector3, hypot_customVector)
 
 TEST (Vector3, norm_msgVector)
 
 TEST (Vector3, norm_customVector)
 
 TEST (Vector3, normalize_msgVector)
 
 TEST (Vector3, normalize_customVector)
 
 TEST (Vector3, addition_msgVector)
 
 TEST (Vector3, addition_customVector)
 
 TEST (Vector3, subtraction_msgVector)
 
 TEST (Vector3, subtraction_CustomVector)
 
 TEST (Vector3, multiplication_msgVector)
 
 TEST (Vector3, multiplication_CustomVector)
 
 TEST (Vector3, division_msgVector)
 
 TEST (Vector3, division_CustomVector)
 
 TEST (Vector3, additionAssignment_msgVector)
 
 TEST (Vector3, additionAssignment_customVector)
 
 TEST (Vector3, vector3_getSizeZero)
 
 TEST (Vector3, vector3_getSize)
 
 TEST (Vector3, vector3_normalizeZero)
 
 TEST (Vector3, vector3_normalize)
 
 TEST (Vector3, innerProduct_getInnerProduct)
 
 TEST (Vector3, innerProduct_identical)
 
 TEST (Vector3, innerProduct_zero)
 
 TEST (Vector3, innerAngle_getInnerAngle)
 
 TEST (Vector3, innerAngle_angleIdentical)
 
 TEST (Vector3, innerAngle_angleZero)
 
int main (int argc, char **argv)
 

Variables

constexpr double EPS = 1e-6
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

◆ TEST() [1/26]

TEST ( Vector3  ,
addition_customVector   
)

◆ TEST() [2/26]

TEST ( Vector3  ,
addition_msgVector   
)

◆ TEST() [3/26]

TEST ( Vector3  ,
additionAssignment_customVector   
)

◆ TEST() [4/26]

TEST ( Vector3  ,
additionAssignment_msgVector   
)

◆ TEST() [5/26]

TEST ( Vector3  ,
division_CustomVector   
)

◆ TEST() [6/26]

TEST ( Vector3  ,
division_msgVector   
)

◆ TEST() [7/26]

TEST ( Vector3  ,
hypot_customVector   
)

◆ TEST() [8/26]

TEST ( Vector3  ,
hypot_msgVector   
)

◆ TEST() [9/26]

TEST ( Vector3  ,
innerAngle_angleIdentical   
)

◆ TEST() [10/26]

TEST ( Vector3  ,
innerAngle_angleZero   
)

◆ TEST() [11/26]

TEST ( Vector3  ,
innerAngle_getInnerAngle   
)

◆ TEST() [12/26]

TEST ( Vector3  ,
innerProduct_getInnerProduct   
)

◆ TEST() [13/26]

TEST ( Vector3  ,
innerProduct_identical   
)

◆ TEST() [14/26]

TEST ( Vector3  ,
innerProduct_zero   
)

◆ TEST() [15/26]

TEST ( Vector3  ,
multiplication_CustomVector   
)

◆ TEST() [16/26]

TEST ( Vector3  ,
multiplication_msgVector   
)

◆ TEST() [17/26]

TEST ( Vector3  ,
norm_customVector   
)

◆ TEST() [18/26]

TEST ( Vector3  ,
norm_msgVector   
)

◆ TEST() [19/26]

TEST ( Vector3  ,
normalize_customVector   
)

◆ TEST() [20/26]

TEST ( Vector3  ,
normalize_msgVector   
)

◆ TEST() [21/26]

TEST ( Vector3  ,
subtraction_CustomVector   
)

◆ TEST() [22/26]

TEST ( Vector3  ,
subtraction_msgVector   
)

◆ TEST() [23/26]

TEST ( Vector3  ,
vector3_getSize   
)

◆ TEST() [24/26]

TEST ( Vector3  ,
vector3_getSizeZero   
)

◆ TEST() [25/26]

TEST ( Vector3  ,
vector3_normalize   
)

◆ TEST() [26/26]

TEST ( Vector3  ,
vector3_normalizeZero   
)

Variable Documentation

◆ EPS

constexpr double EPS = 1e-6
constexpr