From 7d585f880378eed6e00d214c2aa30265a9b99622 Mon Sep 17 00:00:00 2001 From: Jonathan <30329245+CookStar@users.noreply.github.com> Date: Wed, 4 Mar 2020 12:52:39 +0900 Subject: [PATCH] Add AngleVectors overload to mathlib. --- src/core/modules/mathlib/mathlib_wrap.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/core/modules/mathlib/mathlib_wrap.cpp b/src/core/modules/mathlib/mathlib_wrap.cpp index 5628ccdeb..26fa2445b 100755 --- a/src/core/modules/mathlib/mathlib_wrap.cpp +++ b/src/core/modules/mathlib/mathlib_wrap.cpp @@ -334,10 +334,16 @@ void export_qangle(scope _mathlib) "Invalidates the angle." ) + .def("get_angle_vectors", + GET_FUNCTION(void, AngleVectors, const QAngle &, Vector *), + arg("forward"), + "Euler QAngle -> Basis Vectors." + ) + .def("get_angle_vectors", GET_FUNCTION(void, AngleVectors, const QAngle &, Vector *, Vector *, Vector *), - "Euler QAngle -> Basis Vectors. Each vector is optional", - (arg("forward")=NULL, arg("right")=NULL, arg("up")=NULL) + (arg("forward")=NULL, arg("right")=NULL, arg("up")=NULL), + "Euler QAngle -> Basis Vectors. Each vector is optional." ) .def("__getitem__",