mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
56 lines
1.1 KiB
YAML
56 lines
1.1 KiB
YAML
extra_includes:
|
|
- geometryToString.h
|
|
- wpystruct.h
|
|
|
|
functions:
|
|
to_json:
|
|
ignore: true
|
|
from_json:
|
|
ignore: true
|
|
classes:
|
|
wpi::math::Quaternion:
|
|
methods:
|
|
Quaternion:
|
|
overloads:
|
|
'':
|
|
double, double, double, double:
|
|
operator+:
|
|
operator-:
|
|
operator*:
|
|
overloads:
|
|
double [const]:
|
|
const Quaternion& [const]:
|
|
operator/:
|
|
operator==:
|
|
Dot:
|
|
Conjugate:
|
|
Inverse:
|
|
Normalize:
|
|
Norm:
|
|
Pow:
|
|
Exp:
|
|
overloads:
|
|
const Quaternion& [const]:
|
|
'[const]':
|
|
Log:
|
|
overloads:
|
|
const Quaternion& [const]:
|
|
'[const]':
|
|
W:
|
|
X:
|
|
Y:
|
|
Z:
|
|
ToRotationVector:
|
|
FromRotationVector:
|
|
|
|
inline_code: |
|
|
cls_Quaternion
|
|
.def("__repr__", py::overload_cast<const Quaternion&>(&rpy::toString))
|
|
.def_property_readonly("w", &Quaternion::W)
|
|
.def_property_readonly("x", &Quaternion::X)
|
|
.def_property_readonly("y", &Quaternion::Y)
|
|
.def_property_readonly("z", &Quaternion::Z)
|
|
;
|
|
|
|
SetupWPyStruct<wpi::math::Quaternion>(cls_Quaternion);
|