pub fn snap_layers(&mut self, responses: &mut VecDeque<Message>, document_message_handler: &DocumentMessageHandler, snap_anchors: Vec<DVec2>, mouse_delta: DVec2) -> DVec2 {
		if document_message_handler.snapping_enabled {
			self.calculate_snap(snap_anchors.iter().map(move |&snap| mouse_delta + snap), responses)
		} else {
			DVec2::ZERO
		}
	}
/// Finds the closest snap from an array of layers to the specified snap targets in viewport coords.
/// Returns 0 for each axis that there is no snap less than the snap tolerance.
Finds the closest snap from an array of layers to the specified snap targets in viewport coords.
Returns 0 for each axis that there is no snap less than the snap tolerance.
Finds the closest snap from an array of layers to the specified snap targets in viewport coords . Returns 0 for each axis that there is no snap less than the snap tolerance .
pub fn snap_layers(&mut self, responses: &mut VecDeque<Message>, document_message_handler: &DocumentMessageHandler, snap_anchors: Vec<DVec2>, mouse_delta: DVec2) -> DVec2 {
		if document_message_handler.snapping_enabled {
			self.calculate_snap(snap_anchors.iter().map(move |&snap| mouse_delta + snap), responses)
		} else {
			DVec2::ZERO
		}
	}
pub fn snap_layers ( & mut self , responses : & mut VecDeque < Message > , document_message_handler : & DocumentMessageHandler , snap_anchors : Vec < DVec2 > , mouse_delta : DVec2 ) -> DVec2 { if document_message_handler . snapping_enabled { self . calculate_snap ( snap_anchors . iter ( ) . map ( move | & snap | mouse_delta + snap ) , responses ) } else { DVec2 :: ZERO } }
Finds the closest snap from an array of layers to the specified snap targets in viewport coords.
Finds the closest snap from an array of layers to the specified snap targets in viewport coords .
&mut self
responses
&mut VecDeque<Message>
document_message_handler
&DocumentMessageHandler
snap_anchors
Vec<DVec2>
mouse_delta
DVec2
&mut self
responses
&mut VecDeque<Message>
document_message_handler
&DocumentMessageHandler
snap_anchors
Vec<DVec2>
mouse_delta
DVec2