[−][src]Struct k::node::JointBuilder
Build a Link<T>
Examples
use k::*; let l0 = JointBuilder::new() .name("link_pitch") .translation(Translation3::new(0.0, 0.1, 0.0)) .joint_type( JointType::Rotational{axis: Vector3::y_axis()}) .finalize(); println!("{:?}", l0);
Methods
impl<T> JointBuilder<T> where
T: RealField,
[src]
T: RealField,
pub fn new() -> JointBuilder<T>
[src]
pub fn name(self, name: &str) -> JointBuilder<T>
[src]
Set the name of the Link
pub fn joint_type(self, joint_type: JointType<T>) -> JointBuilder<T>
[src]
Set the joint which is connected to this link
pub fn limits(self, limits: Option<Range<T>>) -> JointBuilder<T>
[src]
Set joint limits
pub fn origin(self, origin: Isometry3<T>) -> JointBuilder<T>
[src]
Set the origin transform of this joint
pub fn translation(self, translation: Translation3<T>) -> JointBuilder<T>
[src]
Set the translation of the origin transform of this joint
pub fn rotation(self, rotation: UnitQuaternion<T>) -> JointBuilder<T>
[src]
Set the rotation of the origin transform of this joint
pub fn finalize(self) -> Joint<T>
[src]
Create Joint
instance
pub fn into_node(self) -> Node<T>
[src]
Create Node
instead of Joint
as output
Trait Implementations
impl<T> Default for JointBuilder<T> where
T: RealField,
[src]
T: RealField,
impl<T: Clone + RealField> Clone for JointBuilder<T>
[src]
fn clone(&self) -> JointBuilder<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Debug + RealField> Debug for JointBuilder<T>
[src]
Auto Trait Implementations
impl<T> Send for JointBuilder<T> where
T: Scalar,
T: Scalar,
impl<T> Sync for JointBuilder<T> where
T: Scalar,
T: Scalar,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,