#[non_exhaustive]
pub struct Edge { pub kind: EdgeKind, pub input_rot_g: Option<Global<UnitQuat>>, pub calib_rot_l: Local<UnitQuat>, pub length: f32, pub output_rot_g: Global<UnitQuat>, }
Expand description

Edges represent the connections between the Nodes of the skeleton.

Edges have a global rotation, represented as a unit quaternion. To get an edge’s position, you can get the position of either of its two attached Nodes.

Note that by convention, the directionality of edges points towards the top of the skeleton. So the head of the edge would also be the tail of an edge closer to the top of the skeleton. This is simply to give the parent and child of an edge a consistent meaning.

For more information, see the skeleton module.

Fields (Non-exhaustive)

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
kind: EdgeKindinput_rot_g: Option<Global<UnitQuat>>

Input rotation in global space. If it is unconstrained, it is None.

calib_rot_l: Local<UnitQuat>

Local rotation of the edge with respect to the parent edge at calibration time. Maps from parent frame to child frame.

length: f32

Length of the edge. May be set by the user, or may be computed at calibration.

output_rot_g: Global<UnitQuat>

The output rotation of the edge. Solving the skeleton updates this.

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Checks if self is actually part of its subset T (and can be converted to it).
Use with care! Same as self.to_subset but without any property checks. Always succeeds.
The inclusion map: converts self to the equivalent element of its superset.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.