32 #define TEST_NAME "base/point2d"
41 BOOST_CHECK_EQUAL(point2D.
X(), 0);
42 BOOST_CHECK_EQUAL(point2D.
Y(), 0);
43 BOOST_CHECK_EQUAL(point2D.
XY()[0], point2D.
X());
44 BOOST_CHECK_EQUAL(point2D.
XY()[1], point2D.
Y());
46 BOOST_CHECK_EQUAL(point2D.
HasPoint3D(),
false);
51 BOOST_CHECK_EQUAL(point2D.
X(), 0);
52 BOOST_CHECK_EQUAL(point2D.
Y(), 0);
53 BOOST_CHECK_EQUAL(point2D.
XY()[0], point2D.
X());
54 BOOST_CHECK_EQUAL(point2D.
XY()[1], point2D.
Y());
55 point2D.
SetXY(Eigen::Vector2d(0.1, 0.2));
56 BOOST_CHECK_EQUAL(point2D.
X(), 0.1);
57 BOOST_CHECK_EQUAL(point2D.
Y(), 0.2);
58 BOOST_CHECK_EQUAL(point2D.
XY()[0], point2D.
X());
59 BOOST_CHECK_EQUAL(point2D.
XY()[1], point2D.
Y());
65 BOOST_CHECK_EQUAL(point2D.
HasPoint3D(),
false);
67 BOOST_CHECK_EQUAL(point2D.
Point3DId(), 1);
71 BOOST_CHECK_EQUAL(point2D.
HasPoint3D(),
false);
void SetXY(const Eigen::Vector2d &xy)
point3D_t Point3DId() const
void SetPoint3DId(const point3D_t point3D_id)
const Eigen::Vector2d & XY() const
const point3D_t kInvalidPoint3DId
BOOST_AUTO_TEST_CASE(TestDefault)