1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// SPDX-License-Identifier: MIT
// Copyright (c) "2023" . The DeepCausality Authors. All Rights Reserved.

use std::ops::*;

use deep_causality_macros::{Constructor, Getters};

mod adjustable;
mod display;
mod identifiable;
mod spatial;

#[derive(Getters, Constructor, Debug, Copy, Clone, Hash, Eq, PartialEq)]
pub struct AdjustableSpace<T>
where
    T: Default + Add<T, Output = T> + Sub<T, Output = T> + Mul<T, Output = T> + Copy,
{
    #[getter(name = space_id)] // Rename ID getter to prevent conflict impl with identifiable
    id: u64,
    x: T,
    y: T,
    z: T,
}