Struct k::node::NodeBuilder[][src]

pub struct NodeBuilder<T: RealField> { /* fields omitted */ }

Build a Link<T>

Examples

use k::*;
let l0 = NodeBuilder::new()
    .name("link_pitch")
    .translation(Translation3::new(0.0, 0.1, 0.0))
    .joint_type( JointType::Rotational{axis: Vector3::y_axis()})
    .finalize();
println!("{:?}", l0);

Implementations

impl<T> NodeBuilder<T> where
    T: RealField + SubsetOf<f64>, 
[src]

pub fn new() -> NodeBuilder<T>[src]

pub fn name(self, name: &str) -> NodeBuilder<T>[src]

Set the name of the Link

pub fn joint_type(self, joint_type: JointType<T>) -> NodeBuilder<T>[src]

Set the joint which is connected to this link

pub fn limits(self, limits: Option<Range<T>>) -> NodeBuilder<T>[src]

Set joint limits

pub fn origin(self, origin: Isometry3<T>) -> NodeBuilder<T>[src]

Set the origin transform of this joint

pub fn translation(self, translation: Translation3<T>) -> NodeBuilder<T>[src]

Set the translation of the origin transform of this joint

pub fn rotation(self, rotation: UnitQuaternion<T>) -> NodeBuilder<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: Clone + RealField> Clone for NodeBuilder<T>[src]

impl<T: Debug + RealField> Debug for NodeBuilder<T>[src]

impl<T> Default for NodeBuilder<T> where
    T: RealField + SubsetOf<f64>, 
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for NodeBuilder<T> where
    T: RefUnwindSafe

impl<T> Send for NodeBuilder<T>

impl<T> Sync for NodeBuilder<T>

impl<T> Unpin for NodeBuilder<T> where
    T: Unpin

impl<T> UnwindSafe for NodeBuilder<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.