Drake
ignition_types_compare.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <gtest/gtest.h>
4 #include "ignition/math/Vector3.hh"
5 
6 namespace drake {
7 namespace maliput {
8 namespace rndf {
9 namespace test {
10 
11 // Compares equality within @p tolerance deviation of two
12 // ignition::math::Vector3d objects.
13 // @param v1 An ignition::math::Vector3d object to compare.
14 // @param v2 An ignition::math::Vector3d object to compare.
15 // @param tolerance An allowable absolute deviation for each
16 // ignition::math::Vector3d's coordinate.
17 // @return ::testing::AssertionFailure() When ignition::math::Vector3d objects
18 // are different.
19 // @return ::testing::AssertionSuccess() When ignition::math::Vector3d objects
20 // are within the @p tolerance deviation.
21 ::testing::AssertionResult IsIgnitionVector3dClose(
22  const ignition::math::Vector3d& v1, const ignition::math::Vector3d& v2,
23  double tolerance);
24 
25 } // namespace test
26 } // namespace rndf
27 } // namespace maliput
28 } // namespace drake
Definition: automotive_demo.cc:88
::testing::AssertionResult IsIgnitionVector3dClose(const ignition::math::Vector3d &v1, const ignition::math::Vector3d &v2, double tolerance)
Definition: ignition_types_compare.cc:11