plottery_lib 0.7.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::{Angle, V2};

pub trait Rotate {
    fn rotate(&self, angle: Angle) -> Self;
    fn rotate_mut(&mut self, angle: Angle);

    fn rotate_around(&self, pivot: V2, angle: Angle) -> Self;
    fn rotate_around_mut(&mut self, pivot: V2, angle: Angle);
}