Skip to main content
Log in

Mojo struct

BoundingBox

struct BoundingBox[type: DType]

Fields

  • nw (SIMD[type, 2]):
  • se (SIMD[type, 2]):

Implemented traits

AnyType, Copyable, ExplicitlyCopyable, Movable, UnknownDestructibility

Methods

__init__

__init__(out self, y1: SIMD[type, 1], x1: SIMD[type, 1], y2: SIMD[type, 1], x2: SIMD[type, 1])

iou

iou(self, other: Self) -> SIMD[type, 1]

intersection_area

intersection_area(self, other: Self) -> SIMD[type, 1]

area

area(self) -> SIMD[type, 1]