Skip to content

Commit 2be52a7

Browse files
committed
Added VectorAngles and VectorVectors.
1 parent 77f6b15 commit 2be52a7

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

src/core/modules/mathlib/mathlib_wrap.cpp

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

214+
.def("get_vector_vectors",
215+
&VectorVectors,
216+
(arg("right"), arg("up"))
217+
)
218+
214219
.def("get_vector_angles",
215220
GET_FUNCTION(void, VectorAngles, const Vector &, QAngle &),
216-
"Forward direction vector -> Euler angles",
217-
arg("angles")
221+
arg("angles"),
222+
"Forward direction vector -> Euler angles."
223+
)
224+
225+
.def("get_vector_angles",
226+
GET_FUNCTION(void, VectorAngles, const Vector &, const Vector &, QAngle &),
227+
(arg("pseudoup"), arg("angles")),
228+
"Forward direction vector with a reference up vector -> Euler angles."
218229
)
219230

220231
.def("get_distance",

0 commit comments

Comments
 (0)