APM:Libraries
Functions | Variables
benchmark_geodesic_grid.cpp File Reference
#include <AP_gbenchmark.h>
#include <AP_Math/AP_GeodesicGrid.h>
Include dependency graph for benchmark_geodesic_grid.cpp:

Go to the source code of this file.

Functions

static bool section_triangle (unsigned int section_index, Vector3f &a, Vector3f &b, Vector3f &c)
 
static void BM_GeodesicGridSections (benchmark::State &state)
 
 BENCHMARK (BM_GeodesicGridSections) -> DenseRange(0, 79)
 

Variables

static const Vector3f triangles [20][3]
 

Function Documentation

◆ BENCHMARK()

BENCHMARK ( BM_GeodesicGridSections  ) -> DenseRange(0, 79)

Referenced by BM_GeodesicGridSections().

Here is the caller graph for this function:

◆ BM_GeodesicGridSections()

static void BM_GeodesicGridSections ( benchmark::State &  state)
static

Definition at line 84 of file benchmark_geodesic_grid.cpp.

Here is the call graph for this function:

◆ section_triangle()

static bool section_triangle ( unsigned int  section_index,
Vector3f a,
Vector3f b,
Vector3f c 
)
static

Definition at line 45 of file benchmark_geodesic_grid.cpp.

Referenced by BM_GeodesicGridSections().

Here is the caller graph for this function:

Variable Documentation

◆ triangles

const Vector3f triangles[20][3]
static
Initial value:
= {
{{-M_GOLDEN, 1, 0}, {-1, 0,-M_GOLDEN}, {-M_GOLDEN,-1, 0}},
{{-1, 0,-M_GOLDEN}, {-M_GOLDEN,-1, 0}, { 0,-M_GOLDEN,-1}},
{{-M_GOLDEN,-1, 0}, { 0,-M_GOLDEN,-1}, { 0,-M_GOLDEN, 1}},
{{-1, 0,-M_GOLDEN}, { 0,-M_GOLDEN,-1}, { 1, 0,-M_GOLDEN}},
{{ 0,-M_GOLDEN,-1}, { 0,-M_GOLDEN, 1}, { M_GOLDEN,-1, 0}},
{{ 0,-M_GOLDEN,-1}, { 1, 0,-M_GOLDEN}, { M_GOLDEN,-1, 0}},
{{ M_GOLDEN,-1, 0}, { 1, 0,-M_GOLDEN}, { M_GOLDEN, 1, 0}},
{{ 1, 0,-M_GOLDEN}, { M_GOLDEN, 1, 0}, { 0, M_GOLDEN,-1}},
{{ 1, 0,-M_GOLDEN}, { 0, M_GOLDEN,-1}, {-1, 0,-M_GOLDEN}},
{{ 0, M_GOLDEN,-1}, {-M_GOLDEN, 1, 0}, {-1, 0,-M_GOLDEN}},
{{ M_GOLDEN,-1, 0}, { 1, 0, M_GOLDEN}, { M_GOLDEN, 1, 0}},
{{ 1, 0, M_GOLDEN}, { M_GOLDEN, 1, 0}, { 0, M_GOLDEN, 1}},
{{ M_GOLDEN, 1, 0}, { 0, M_GOLDEN, 1}, { 0, M_GOLDEN,-1}},
{{ 1, 0, M_GOLDEN}, { 0, M_GOLDEN, 1}, {-1, 0, M_GOLDEN}},
{{ 0, M_GOLDEN, 1}, { 0, M_GOLDEN,-1}, {-M_GOLDEN, 1, 0}},
{{ 0, M_GOLDEN, 1}, {-1, 0, M_GOLDEN}, {-M_GOLDEN, 1, 0}},
{{-M_GOLDEN, 1, 0}, {-1, 0, M_GOLDEN}, {-M_GOLDEN,-1, 0}},
{{-1, 0, M_GOLDEN}, {-M_GOLDEN,-1, 0}, { 0,-M_GOLDEN, 1}},
{{-1, 0, M_GOLDEN}, { 0,-M_GOLDEN, 1}, { 1, 0, M_GOLDEN}},
{{ 0,-M_GOLDEN, 1}, { M_GOLDEN,-1, 0}, { 1, 0, M_GOLDEN}},
}
#define M_GOLDEN
Definition: definitions.h:17

Definition at line 21 of file benchmark_geodesic_grid.cpp.