Skip to content

Commit 77f6b15

Browse files
committed
Added VectorAngles to mathlib.
Reference: https://developer.valvesoftware.com/wiki/AngleVectors()
1 parent 92b3adf commit 77f6b15

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/core/modules/mathlib/mathlib_wrap.cpp

100644100755
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,12 @@ void export_vector(scope _mathlib)
211211
"Returns True if the vector is within the given box coordinates."
212212
)
213213

214+
.def("get_vector_angles",
215+
GET_FUNCTION(void, VectorAngles, const Vector &, QAngle &),
216+
"Forward direction vector -> Euler angles",
217+
arg("angles")
218+
)
219+
214220
.def("get_distance",
215221
&Vector::DistTo,
216222
args("other"),

0 commit comments

Comments
 (0)