drawme 0.0.0

Static 2d rendering engine skia alternative
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use nalgebra::Rotation2;
#[cfg(feature = "serde")]
use serde::Serialize;

#[derive(Clone, Copy, Debug, PartialEq)]
#[cfg_attr(feature = "serde", derive(Serialize))]
pub struct Rotation(Rotation2<f64>);

impl Rotation {
    pub fn new(radian: f64) -> Self {
        Self(Rotation2::new(radian))
    }
}