Struct k::node::NodeBuilder [−][src]
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]
T: RealField + SubsetOf<f64>,
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]
fn clone(&self) -> NodeBuilder<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug + RealField> Debug for NodeBuilder<T>
[src]
impl<T> Default for NodeBuilder<T> where
T: RealField + SubsetOf<f64>,
[src]
T: RealField + SubsetOf<f64>,
Auto Trait Implementations
impl<T> RefUnwindSafe for NodeBuilder<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for NodeBuilder<T>
impl<T> Sync for NodeBuilder<T>
impl<T> Unpin for NodeBuilder<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for NodeBuilder<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,