Orientation constructor
Orientation({
- Orientation_NoOrientation? noOrientation,
- Orientation_OrientationVectorRadians? vectorRadians,
- Orientation_OrientationVectorDegrees? vectorDegrees,
- Orientation_EulerAngles? eulerAngles,
- Orientation_AxisAngles? axisAngles,
- Orientation_Quaternion? quaternion,
Implementation
factory Orientation({
Orientation_NoOrientation? noOrientation,
Orientation_OrientationVectorRadians? vectorRadians,
Orientation_OrientationVectorDegrees? vectorDegrees,
Orientation_EulerAngles? eulerAngles,
Orientation_AxisAngles? axisAngles,
Orientation_Quaternion? quaternion,
}) {
final $result = create();
if (noOrientation != null) {
$result.noOrientation = noOrientation;
}
if (vectorRadians != null) {
$result.vectorRadians = vectorRadians;
}
if (vectorDegrees != null) {
$result.vectorDegrees = vectorDegrees;
}
if (eulerAngles != null) {
$result.eulerAngles = eulerAngles;
}
if (axisAngles != null) {
$result.axisAngles = axisAngles;
}
if (quaternion != null) {
$result.quaternion = quaternion;
}
return $result;
}