pub struct ContactAxis {
pub axis: Vec3,
pub plus_end: Vec3,
pub minus_end: Vec3,
pub plus_outward: Vec3,
pub minus_outward: Vec3,
pub wire_at_plus: bool,
pub rule: ContactRule,
}Expand description
What a contact body derives: its two ends, the direction a wire leaves along at each, and the end a wire leaves from.
Fields§
§axis: Vec3The axis direction in its canonical sense (largest component
positive): the body’s axis, or under the cap rule the chord from the
-axis end to the +axis end, or the Direction.
plus_end: Vec3The +axis end.
minus_end: Vec3The -axis end.
plus_outward: Vec3The direction a wire leaves along at the +axis end (out of the body).
minus_outward: Vec3The direction a wire leaves along at the -axis end.
wire_at_plus: boolWhether the wire leaves from the +axis end.
rule: ContactRuleThe rule that found the ends.
Implementations§
Trait Implementations§
Source§impl Clone for ContactAxis
impl Clone for ContactAxis
impl Copy for ContactAxis
Auto Trait Implementations§
impl Forget for ContactAxis
impl Freeze for ContactAxis
impl Move for ContactAxis
impl RefUnwindSafe for ContactAxis
impl Send for ContactAxis
impl Sync for ContactAxis
impl Unpin for ContactAxis
impl UnsafeUnpin for ContactAxis
impl UnwindSafe for ContactAxis
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more