euv-core 0.57.0

Core cross-platform runtime for euv featuring arena-based fine-grained reactivity, deterministic layout, flat scene graph, multi-mode rendering, and direct OS platform adapters.
Documentation
/// Distance metric used by Worley / cellular noise evaluation.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
pub enum WorleyMetric {
    /// Standard Euclidean distance `sqrt(dx^2 + dy^2 [+ dz^2])`.
    #[default]
    Euclidean,
    /// Taxicab / Manhattan L1 distance `|dx| + |dy| [+ |dz|]`.
    Manhattan,
    /// Chessboard / Chebyshev L-infinity distance `max(|dx|, |dy| [, |dz|])`.
    Chebyshev,
}

/// Output feature selector for Worley / cellular noise.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
pub enum WorleyOutput {
    /// Distance to the nearest feature point (`F1`).
    #[default]
    F1,
    /// Distance to the second-nearest feature point (`F2`).
    F2,
    /// Voronoi cell border distance (`F2 - F1`).
    F2MinusF1,
}

/// Cardinal adjacency direction in 2D Wave Function Collapse grids.
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
pub enum WfcDirection {
    /// Neighbor at `(x, y - 1)`.
    North,
    /// Neighbor at `(x + 1, y)`.
    East,
    /// Neighbor at `(x, y + 1)`.
    South,
    /// Neighbor at `(x - 1, y)`.
    West,
}

/// Semantic tile classification produced by `BspDungeonGenerator`.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
pub enum BspTileKind {
    /// Solid impassable wall tile.
    #[default]
    Wall,
    /// Walkable interior room floor tile.
    Floor,
    /// Walkable connecting corridor tile.
    Corridor,
    /// Walkable doorway threshold where a corridor meets a room perimeter.
    Door,
}