Mojo struct
BoundingBox
struct BoundingBox[dtype: DType]
Fields
- nw (
SIMD[dtype, 2]
): - se (
SIMD[dtype, 2]
):
Implemented traits
AnyType
,
Copyable
,
Movable
,
UnknownDestructibility
Methods
__init__
__init__(out self, y1: SIMD[dtype, 1], x1: SIMD[dtype, 1], y2: SIMD[dtype, 1], x2: SIMD[dtype, 1])
iou
iou(self, other: Self) -> SIMD[dtype, 1]
intersection_area
intersection_area(self, other: Self) -> SIMD[dtype, 1]
area
area(self) -> SIMD[dtype, 1]
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!