ranim-core 0.2.0

The core library of Ranim.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use derive_more::{AsMut, AsRef, Deref, DerefMut, From};
use glam::DVec3;

use crate::prelude::Interpolatable;

/// Point
#[derive(Default, Debug, Clone, Copy, PartialEq, Deref, DerefMut, From, AsRef, AsMut)]
pub struct Point(DVec3);

impl Interpolatable for Point {
    fn lerp(&self, target: &Self, t: f64) -> Self {
        Self(self.0.lerp(target.0, t))
    }
}