pub fn check_rotate(&self, cursor: DVec2) -> bool {
		let cursor = self.transform.inverse().transform_point2(cursor);
		let rotate_threshold = self.transform.inverse().transform_vector2(DVec2::new(0., BOUNDS_ROTATE_THRESHOLD)).length();

		let min = self.bounds[0].min(self.bounds[1]);
		let max = self.bounds[0].max(self.bounds[1]);

		let outside_bounds = (min.x > cursor.x || cursor.x > max.x) || (min.y > cursor.y || cursor.y > max.y);
		let inside_extended_bounds = min.x - cursor.x < rotate_threshold && min.y - cursor.y < rotate_threshold && cursor.x - max.x < rotate_threshold && cursor.y - max.y < rotate_threshold;

		outside_bounds & inside_extended_bounds
	}
/// Check if the user is rotating with the bounds
Check if the user is rotating with the bounds
Check if the user is rotating with the bounds
pub fn check_rotate(&self, cursor: DVec2) -> bool {
		let cursor = self.transform.inverse().transform_point2(cursor);
		let rotate_threshold = self.transform.inverse().transform_vector2(DVec2::new(0., BOUNDS_ROTATE_THRESHOLD)).length();
		let min = self.bounds[0].min(self.bounds[1]);
		let max = self.bounds[0].max(self.bounds[1]);
		let outside_bounds = (min.x > cursor.x || cursor.x > max.x) || (min.y > cursor.y || cursor.y > max.y);
		let inside_extended_bounds = min.x - cursor.x < rotate_threshold && min.y - cursor.y < rotate_threshold && cursor.x - max.x < rotate_threshold && cursor.y - max.y < rotate_threshold;
		outside_bounds & inside_extended_bounds
	}
pub fn check_rotate ( & self , cursor : DVec2 ) -> bool { let cursor = self . transform . inverse ( ) . transform_point2 ( cursor ) ; let rotate_threshold = self . transform . inverse ( ) . transform_vector2 ( DVec2 :: new ( 0. , BOUNDS_ROTATE_THRESHOLD ) ) . length ( ) ; let min = self . bounds [ 0 ] . min ( self . bounds [ 1 ] ) ; let max = self . bounds [ 0 ] . max ( self . bounds [ 1 ] ) ; let outside_bounds = ( min . x > cursor . x || cursor . x > max . x ) || ( min . y > cursor . y || cursor . y > max . y ) ; let inside_extended_bounds = min . x - cursor . x < rotate_threshold && min . y - cursor . y < rotate_threshold && cursor . x - max . x < rotate_threshold && cursor . y - max . y < rotate_threshold ; outside_bounds & inside_extended_bounds }
Check if the user is rotating with the bounds
Check if the user is rotating with the bounds
&self
cursor
DVec2
&self
cursor
DVec2