fn encode_rect2(pos_vec: Vector2, size_vec: Vector2) -> Rect2 {
	return Rect2::new(
		Point2::new(pos_vec.x, pos_vec.y),
		Size2D::new(size_vec.x, size_vec.y),
	);
}
/// Returns a Rect2 at the specified point and with the specified size.
///
/// # Arguments
///
/// `pos_vec` - The Vector2 that defines the Rect2's position.
/// `size_vec` - The Vector2 that defines the Rect's size.
Returns a Rect2 at the specified point and with the specified size.
Returns a Rect2 at the specified point and with the specified size .
fn encode_rect2(pos_vec: Vector2, size_vec: Vector2) -> Rect2 {
	return Rect2::new(
		Point2::new(pos_vec.x, pos_vec.y),
		Size2D::new(size_vec.x, size_vec.y),
	);
}
fn encode_rect2 ( pos_vec : Vector2 , size_vec : Vector2 ) -> Rect2 { return Rect2 :: new ( Point2 :: new ( pos_vec . x , pos_vec . y ) , Size2D :: new ( size_vec . x , size_vec . y ) , ) ; }
Returns a Rect2 at the specified point and with the specified size.
Returns a Rect2 at the specified point and with the specified size .
pos_vec
Vector2
size_vec
Vector2