pub fn snap_position(&mut self, responses: &mut VecDeque<Message>, document_message_handler: &DocumentMessageHandler, position_viewport: DVec2) -> DVec2 {
		if document_message_handler.snapping_enabled {
			self.calculate_snap([position_viewport].into_iter(), responses) + position_viewport
		} else {
			position_viewport
		}
	}
/// Handles snapping of a viewport position, returning another viewport position.
Handles snapping of a viewport position, returning another viewport position.
Handles snapping of a viewport position returning another viewport position .
pub fn snap_position(&mut self, responses: &mut VecDeque<Message>, document_message_handler: &DocumentMessageHandler, position_viewport: DVec2) -> DVec2 {
		if document_message_handler.snapping_enabled {
			self.calculate_snap([position_viewport].into_iter(), responses) + position_viewport
		} else {
			position_viewport
		}
	}
pub fn snap_position ( & mut self , responses : & mut VecDeque < Message > , document_message_handler : & DocumentMessageHandler , position_viewport : DVec2 ) -> DVec2 { if document_message_handler . snapping_enabled { self . calculate_snap ( [ position_viewport ] . into_iter ( ) , responses ) + position_viewport } else { position_viewport } }
Handles snapping of a viewport position, returning another viewport position.
Handles snapping of a viewport position returning another viewport position .
&mut self
responses
&mut VecDeque<Message>
document_message_handler
&DocumentMessageHandler
position_viewport
DVec2
&mut self
responses
&mut VecDeque<Message>
document_message_handler
&DocumentMessageHandler
position_viewport
DVec2