@@ -242,7 +242,6 @@ void export_vector()
242242// -----------------------------------------------------------------------------
243243void export_qangle ()
244244{
245- // TODO: Documentation
246245 class_<QAngle>(" QAngle" )
247246 .def (init<float , float , float >())
248247
@@ -258,31 +257,30 @@ void export_qangle()
258257 &QAngle::z
259258 )
260259
261- .def (" init" ,
262- &QAngle::Init,
263- " Initializes the QAngle instance with the given values." ,
264- args (" x" , " y" , " z" )
265- )
266-
267260 .def (" random" ,
268261 &QAngle::Random,
269- args (" min_val" , " max_val" )
262+ args (" min_val" , " max_val" ),
263+ " Generates some random values between <min_val> and <max_val>."
270264 )
271265
272266 .def (" is_valid" ,
273- &QAngle::IsValid
267+ &QAngle::IsValid,
268+ " Returns True if the angle is valid."
274269 )
275270
276271 .def (" invalidate" ,
277- &QAngle::Invalidate
272+ &QAngle::Invalidate,
273+ " Invalidates the angle."
278274 )
279275
280276 .def (" __getitem__" ,
281- &GetItemIndexer<QAngle, float , 0 , 2 >
277+ &GetItemIndexer<QAngle, float , 0 , 2 >,
278+ " Returns the value at the given index."
282279 )
283280
284281 .def (" __setitem__" ,
285- &SetItemIndexer<QAngle, float , 0 , 2 >
282+ &SetItemIndexer<QAngle, float , 0 , 2 >,
283+ " Sets the value at the given index."
286284 )
287285
288286 .def (self == self)
@@ -294,11 +292,13 @@ void export_qangle()
294292 .def (self /= other<float >())
295293
296294 .def (" get_length" ,
297- &QAngle::Length
295+ &QAngle::Length,
296+ " Returns the length of the angle."
298297 )
299298
300299 .def (" get_length_sqr" ,
301- &QAngle::LengthSqr
300+ &QAngle::LengthSqr,
301+ " Returns the square of the angle's length."
302302 )
303303
304304 .def (self + self)
@@ -313,33 +313,31 @@ void export_qangle()
313313// -----------------------------------------------------------------------------
314314void export_quaternion ()
315315{
316- // TODO: Documentation
317316 class_<Quaternion>(" Quaternion" )
318317 .def (init<float , float , float , float >())
319318 .def (init<RadianEuler>())
320319
321- .def (" init" ,
322- &Quaternion::Init,
323- args (" x" , " y" , " z" , " w" )
324- )
325-
326320 .def (" is_valid" ,
327- &Quaternion::IsValid
321+ &Quaternion::IsValid,
322+ " Returns True if all values are valid."
328323 )
329324
330325 .def (" invalidate" ,
331- &Quaternion::Invalidate
326+ &Quaternion::Invalidate,
327+ " Invalidates all values."
332328 )
333329
334330 .def (self == self)
335331 .def (self != self)
336332
337333 .def (" __getitem__" ,
338- &GetItemIndexer<Quaternion, float , 0 , 3 >
334+ &GetItemIndexer<Quaternion, float , 0 , 3 >,
335+ " Returns the value at the given index."
339336 )
340337
341338 .def (" __setitem__" ,
342- &SetItemIndexer<Quaternion, float , 0 , 3 >
339+ &SetItemIndexer<Quaternion, float , 0 , 3 >,
340+ " Sets the value at the given index."
343341 )
344342
345343 .def_readwrite (" x" ,
@@ -382,8 +380,6 @@ void export_cplane_t()
382380 .def_readwrite (" signbits" ,
383381 &cplane_t ::signbits
384382 )
385-
386- // TODO: byte pad[2];
387383 ;
388384}
389385
@@ -392,34 +388,34 @@ void export_cplane_t()
392388// -----------------------------------------------------------------------------
393389void export_radian_euler ()
394390{
395- // TODO: Documentation
396391 class_<RadianEuler>(" RadianEuler" )
397392 .def (init<float , float , float >())
398393 .def (init<Quaternion>())
399394 .def (init<QAngle>())
400395
401- .def (" init" ,
402- &RadianEuler::Init
403- )
404-
405396 .def (" to_qangle" ,
406- &RadianEuler::ToQAngle
397+ &RadianEuler::ToQAngle,
398+ " Converts the instance to a QAngle instance."
407399 )
408400
409401 .def (" is_valid" ,
410- &RadianEuler::IsValid
402+ &RadianEuler::IsValid,
403+ " Returns True if all values are valid."
411404 )
412405
413406 .def (" invalidate" ,
414- &RadianEuler::Invalidate
407+ &RadianEuler::Invalidate,
408+ " Invalidates all values."
415409 )
416410
417411 .def (" __getitem__" ,
418- &GetItemIndexer<RadianEuler, float , 0 , 2 >
412+ &GetItemIndexer<RadianEuler, float , 0 , 2 >,
413+ " Returns the value at the given index."
419414 )
420415
421416 .def (" __setitem__" ,
422- &SetItemIndexer<RadianEuler, float , 0 , 2 >
417+ &SetItemIndexer<RadianEuler, float , 0 , 2 >,
418+ " Sets the value at the given index."
423419 )
424420
425421 .def_readwrite (" x" ,
0 commit comments