pub fn calculate_pivot(&self) -> DVec2 {
		let min = self.bounds[0];
		let max = self.bounds[1];

		let x = if self.left {
			max.x
		} else if self.right {
			min.x
		} else {
			(min.x + max.x) / 2.
		};

		let y = if self.top {
			max.y
		} else if self.bottom {
			min.y
		} else {
			(min.y + max.y) / 2.
		};

		DVec2::new(x, y)
	}
/// Calculate the pivot for the operation (the opposite point to the edge dragged)
Calculate the pivot for the operation (the opposite point to the edge dragged)
Calculate the pivot for the operation ( the opposite point to the edge dragged )
pub fn calculate_pivot(&self) -> DVec2 {
		let min = self.bounds[0];
		let max = self.bounds[1];
		let x = if self.left {
			max.x
		} else if self.right {
			min.x
		} else {
			(min.x + max.x) / 2.
		};
		let y = if self.top {
			max.y
		} else if self.bottom {
			min.y
		} else {
			(min.y + max.y) / 2.
		};
		DVec2::new(x, y)
	}
pub fn calculate_pivot ( & self ) -> DVec2 { let min = self . bounds [ 0 ] ; let max = self . bounds [ 1 ] ; let x = if self . left { max . x } else if self . right { min . x } else { ( min . x + max . x ) / 2. } ; let y = if self . top { max . y } else if self . bottom { min . y } else { ( min . y + max . y ) / 2. } ; DVec2 :: new ( x , y ) }
Calculate the pivot for the operation (the opposite point to the edge dragged)
Calculate the pivot for the operation ( the opposite point to the edge dragged )
&self
&self