23 #include <pybind11/pybind11.h> 29 namespace py = pybind11;
34 namespace cameraGeom {
37 py::module mod(
"_orientation",
"Python wrapper for afw _orientation library");
40 py::class_<Orientation>
cls(mod,
"Orientation");
45 cls.def(py::init<geom::Point2D, geom::Point2D, geom::Angle, geom::Angle, geom::Angle>(),
52 cls.def(
"getFpPosition", &Orientation::getFpPosition);
53 cls.def(
"getReferencePoint", &Orientation::getReferencePoint);
54 cls.def(
"getYaw", &Orientation::getYaw);
55 cls.def(
"getPitch", &Orientation::getPitch);
56 cls.def(
"getRoll", &Orientation::getRoll);
57 cls.def(
"getNQuarter", &Orientation::getNQuarter);
58 cls.def(
"makePixelFpTransform", &Orientation::makePixelFpTransform,
"pixelSizeMm"_a);
59 cls.def(
"makeFpPixelTransform", &Orientation::makeFpPixelTransform,
"pixelSizeMm"_a);
60 cls.def(
"getFpPosition", &Orientation::getFpPosition);
61 cls.def(
"getFpPosition", &Orientation::getFpPosition);
62 cls.def(
"getFpPosition", &Orientation::getFpPosition);
63 cls.def(
"getFpPosition", &Orientation::getFpPosition);
PYBIND11_PLUGIN(_orientation)
A class representing an angle.
A base class for image defects.