a5 0.7.3

High-performance Rust implementation of the A5 hierarchical spatial indexing system
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// A5
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) A5 contributors

/// 3D floating-point vector.
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Vec3 {
    pub x: f64,
    pub y: f64,
    pub z: f64,
}

impl Vec3 {
    pub const fn new(x: f64, y: f64, z: f64) -> Self {
        Self { x, y, z }
    }
}