diff --git a/src/python/magnum/math.matrix.h b/src/python/magnum/math.matrix.h index 0f7835a..f231f4f 100644 --- a/src/python/magnum/math.matrix.h +++ b/src/python/magnum/math.matrix.h @@ -619,6 +619,9 @@ template void matrices( .def_static("perspective_projection", [](Radd fov, T aspectRatio, T near, T far) { return Math::Matrix4::perspectiveProjection(Math::Rad(fov), aspectRatio, near, far); }, "3D perspective projection matrix", py::arg("fov"), py::arg("aspect_ratio"), py::arg("near"), py::arg("far")) + .def_static("perspective_projection", + static_cast(*)(const Math::Vector2&, const Math::Vector2&, T, T)>(&Math::Matrix4::perspectiveProjection), + "3D off-center perspective projection matrix", py::arg("bottom_left"), py::arg("top_right"), py::arg("near"), py::arg("far")) .def_static("look_at", &Math::Matrix4::lookAt, "Matrix oriented towards a specific point", py::arg("eye"), py::arg("target"), py::arg("up")) .def_static("from", static_cast(*)(const Math::Matrix3x3&, const Math::Vector3&)>(&Math::Matrix4::from),