PER Firmware
Loading...
Searching...
No Matches
vector2_test.cpp File Reference

2D vector functions unit tests More...

#include <gtest/gtest.h>
#include <cstring>
#include <vector>
#include "vector2_test_shim.h"
Include dependency graph for vector2_test.cpp:

Functions

static bool operator== (const vector2_t &a, const vector2_t &b)
 
static std::ostream & operator<< (std::ostream &os, const vector2_t &v)
 
 TEST (vector2_test, add_vector2)
 
 TEST (vector2_test, sub_vector2)
 
 TEST (vector2_test, scale_vector2)
 
 TEST (vector2_test, dot_vector2)
 
 TEST (vector2_test, magnitude_vector2)
 
 TEST (vector2_test, cross_vector2)
 
 TEST (vector2_test, distance_vector2)
 
 TEST (vector2_test, midpoint_vector2)
 
 TEST (vector2_test, perpendicular_vector2)
 
 TEST (vector2_test, normalize_vector2)
 

Detailed Description

2D vector functions unit tests

Author
Kerem Eyce (keyce.nosp@m.@pur.nosp@m.due.e.nosp@m.du)

Function Documentation

◆ operator<<()

static std::ostream & operator<< ( std::ostream & os,
const vector2_t & v )
inlinestatic

◆ operator==()

static bool operator== ( const vector2_t & a,
const vector2_t & b )
inlinestatic

◆ TEST() [1/10]

TEST ( vector2_test ,
add_vector2  )
Here is the call graph for this function:

◆ TEST() [2/10]

TEST ( vector2_test ,
cross_vector2  )
Here is the call graph for this function:

◆ TEST() [3/10]

TEST ( vector2_test ,
distance_vector2  )
Here is the call graph for this function:

◆ TEST() [4/10]

TEST ( vector2_test ,
dot_vector2  )
Here is the call graph for this function:

◆ TEST() [5/10]

TEST ( vector2_test ,
magnitude_vector2  )
Here is the call graph for this function:

◆ TEST() [6/10]

TEST ( vector2_test ,
midpoint_vector2  )
Here is the call graph for this function:

◆ TEST() [7/10]

TEST ( vector2_test ,
normalize_vector2  )
Here is the call graph for this function:

◆ TEST() [8/10]

TEST ( vector2_test ,
perpendicular_vector2  )
Here is the call graph for this function:

◆ TEST() [9/10]

TEST ( vector2_test ,
scale_vector2  )
Here is the call graph for this function:

◆ TEST() [10/10]

TEST ( vector2_test ,
sub_vector2  )
Here is the call graph for this function: