plottery_lib 0.12.0

Core geometry library of Plottery, a creative coding framework for generative vector graphics and pen plotting.
Documentation
1
2
3
4
5
6
7
8
9
use crate::V2;

pub trait Scale2D: Sized {
    #[must_use]
    fn scale_2d(&self, factor: V2) -> Self;
    fn scale_2d_mut(&mut self, factor: V2) {
        *self = self.scale_2d(factor);
    }
}