trackforge 0.1.9

A unified, high-performance computer vision tracking library.
Documentation
//! Common types used across the Trackforge library.
//!
//! This module defines fundamental structures like `BoundingBox`.

/// Represents a bounding box in 2D space.
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct BoundingBox {
    pub x: f32,
    pub y: f32,
    pub width: f32,
    pub height: f32,
}

impl BoundingBox {
    pub fn new(x: f32, y: f32, width: f32, height: f32) -> Self {
        Self {
            x,
            y,
            width,
            height,
        }
    }
}