class_docstr: Tests all the rotated bounding box related utilities.
class_docstr_tok: ["Tests","all","the","rotated","bounding","box","related","utilities","."]
docstr: Test for correctness of the intersect_rbox_edges operation.
docstr_tok: ["Test","for","correctness","of","the","intersect_rbox_edges","operation","."]
code: def test_intersect_rbox_edges_same_box(self):
      """Test for correctness of the intersect_rbox_edges operation."""
      rbox1 = jnp.array([0.5, 0.5, 1.0, 1.0, 0])
      rbox2 = rbox1
      corners1 = box_utils.cxcywha_to_corners(rbox1)
      corners2 = box_utils.cxcywha_to_corners(rbox2)
      it_points = box_utils.intersect_rbox_edges(corners1, corners2)
      self.assertEqual(it_points.shape, (4, 4, 2))
      it_points = it_points[~jnp.any(jnp.isnan(it_points), -1)]
      it_points = sorted([(x, y) for x, y in np.array(it_points)])
      expected_points = sorted([(0, 0), (0, 1), (1, 0), (1, 1)] * 2)
      self.assertSequenceEqual(it_points, expected_points)
  
imports: from absl.testing import absltest
  from absl.testing import parameterized
  import jax
  import jax.numpy
  import numpy
  from scenic.model_lib.base_models import box_utils
  from shapely import geometry
label_desc: Use image node_id 5 for calling the RBoxUtilsTest obj's underlying member method code with example usage: obj.test_intersect_rbox_edges_same_box() without return types