pub struct OverlapAlongRequest { /* private fields */ }Expand description
A request for the extents of two bodies’ intersection along stated directions, such as each body’s own placement axes.
Implementations§
Source§impl OverlapAlongRequest
impl OverlapAlongRequest
Sourcepub const MAX_DIRECTIONS: usize = 6
pub const MAX_DIRECTIONS: usize = 6
The most directions one request may name: two bodies’ three axes.
Sourcepub fn try_new(
subject: ObjectId,
counterpart: ObjectId,
directions: Vec<MetricDirection>,
) -> Result<Self, ProximityError>
pub fn try_new( subject: ObjectId, counterpart: ObjectId, directions: Vec<MetricDirection>, ) -> Result<Self, ProximityError>
Refuses one object measured against itself, and no directions or
more than Self::MAX_DIRECTIONS.
pub fn subject(&self) -> &ObjectId
pub fn counterpart(&self) -> &ObjectId
Sourcepub fn directions(&self) -> &[MetricDirection]
pub fn directions(&self) -> &[MetricDirection]
The unit directions to measure along, in request order.
Trait Implementations§
Source§impl Clone for OverlapAlongRequest
impl Clone for OverlapAlongRequest
Source§impl Debug for OverlapAlongRequest
impl Debug for OverlapAlongRequest
Source§impl PartialEq for OverlapAlongRequest
impl PartialEq for OverlapAlongRequest
impl StructuralPartialEq for OverlapAlongRequest
Auto Trait Implementations§
impl Freeze for OverlapAlongRequest
impl RefUnwindSafe for OverlapAlongRequest
impl Send for OverlapAlongRequest
impl Sync for OverlapAlongRequest
impl Unpin for OverlapAlongRequest
impl UnsafeUnpin for OverlapAlongRequest
impl UnwindSafe for OverlapAlongRequest
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