aboutsummaryrefslogtreecommitdiff
path: root/src/dynamics/joint/spherical_joint.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/dynamics/joint/spherical_joint.rs')
-rw-r--r--src/dynamics/joint/spherical_joint.rs26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/dynamics/joint/spherical_joint.rs b/src/dynamics/joint/spherical_joint.rs
index dcbf5fb..77ba9aa 100644
--- a/src/dynamics/joint/spherical_joint.rs
+++ b/src/dynamics/joint/spherical_joint.rs
@@ -1,6 +1,6 @@
use crate::dynamics::joint::{GenericJoint, GenericJointBuilder, JointAxesMask};
use crate::dynamics::{JointAxis, JointMotor, MotorModel};
-use crate::math::{Isometry, Point, Real};
+use crate::math::*;
use super::JointLimits;
@@ -44,24 +44,24 @@ impl SphericalJoint {
/// The joint’s anchor, expressed in the local-space of the first rigid-body.
#[must_use]
- pub fn local_anchor1(&self) -> Point<Real> {
+ pub fn local_anchor1(&self) -> Point {
self.data.local_anchor1()
}
/// Sets the joint’s anchor, expressed in the local-space of the first rigid-body.
- pub fn set_local_anchor1(&mut self, anchor1: Point<Real>) -> &mut Self {
+ pub fn set_local_anchor1(&mut self, anchor1: Point) -> &mut Self {
self.data.set_local_anchor1(anchor1);
self
}
/// The joint’s anchor, expressed in the local-space of the second rigid-body.
#[must_use]
- pub fn local_anchor2(&self) -> Point<Real> {
+ pub fn local_anchor2(&self) -> Point {
self.data.local_anchor2()
}
/// Sets the joint’s anchor, expressed in the local-space of the second rigid-body.
- pub fn set_local_anchor2(&mut self, anchor2: Point<Real>) -> &mut Self {
+ pub fn set_local_anchor2(&mut self, anchor2: Point) -> &mut Self {
self.data.set_local_anchor2(anchor2);
self
}
@@ -69,13 +69,13 @@ impl SphericalJoint {
/// Gets both the joint anchor and the joint’s reference orientation relative to the first
/// rigid-body’s local-space.
#[must_use]
- pub fn local_frame1(&self) -> &Isometry<Real> {
+ pub fn local_frame1(&self) -> &Isometry {
&self.data.local_frame1
}
/// Sets both the joint anchor and the joint’s reference orientation relative to the first
/// rigid-body’s local-space.
- pub fn set_local_frame1(&mut self, local_frame: Isometry<Real>) -> &mut Self {
+ pub fn set_local_frame1(&mut self, local_frame: Isometry) -> &mut Self {
self.data.set_local_frame1(local_frame);
self
}
@@ -83,13 +83,13 @@ impl SphericalJoint {
/// Gets both the joint anchor and the joint’s reference orientation relative to the second
/// rigid-body’s local-space.
#[must_use]
- pub fn local_frame2(&self) -> &Isometry<Real> {
+ pub fn local_frame2(&self) -> &Isometry {
&self.data.local_frame2
}
/// Sets both the joint anchor and the joint’s reference orientation relative to the second
/// rigid-body’s local-space.
- pub fn set_local_frame2(&mut self, local_frame: Isometry<Real>) -> &mut Self {
+ pub fn set_local_frame2(&mut self, local_frame: Isometry) -> &mut Self {
self.data.set_local_frame2(local_frame);
self
}
@@ -196,14 +196,14 @@ impl SphericalJointBuilder {
/// Sets the joint’s anchor, expressed in the local-space of the first rigid-body.
#[must_use]
- pub fn local_anchor1(mut self, anchor1: Point<Real>) -> Self {
+ pub fn local_anchor1(mut self, anchor1: Point) -> Self {
self.0.set_local_anchor1(anchor1);
self
}
/// Sets the joint’s anchor, expressed in the local-space of the second rigid-body.
#[must_use]
- pub fn local_anchor2(mut self, anchor2: Point<Real>) -> Self {
+ pub fn local_anchor2(mut self, anchor2: Point) -> Self {
self.0.set_local_anchor2(anchor2);
self
}
@@ -211,7 +211,7 @@ impl SphericalJointBuilder {
/// Sets both the joint anchor and the joint’s reference orientation relative to the first
/// rigid-body’s local-space.
#[must_use]
- pub fn local_frame1(mut self, frame1: Isometry<Real>) -> Self {
+ pub fn local_frame1(mut self, frame1: Isometry) -> Self {
self.0.set_local_frame1(frame1);
self
}
@@ -219,7 +219,7 @@ impl SphericalJointBuilder {
/// Sets both the joint anchor and the joint’s reference orientation relative to the second
/// rigid-body’s local-space.
#[must_use]
- pub fn local_frame2(mut self, frame2: Isometry<Real>) -> Self {
+ pub fn local_frame2(mut self, frame2: Isometry) -> Self {
self.0.set_local_frame2(frame2);
self
}