trackforge / types
Module types
Common types used across the Trackforge library.
This module defines fundamental structures like BoundingBox.
Quick Reference
| Item |
Kind |
Description |
BoundingBox |
struct |
Represents a bounding box in 2D space. |
Types
BoundingBox
struct BoundingBox {
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
}
Represents a bounding box in 2D space.
Implementations
fn new(x: f32, y: f32, width: f32, height: f32) -> Self
Trait Implementations
impl Clone for BoundingBox
fn clone(&self) -> BoundingBox
impl Copy for BoundingBox
impl Debug for BoundingBox
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl PartialEq for BoundingBox
fn eq(&self, other: &BoundingBox) -> bool
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP