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
10
11
12
13
14
15
16
17
use crate::V2;

pub trait Rotate90 {
    fn rotate_90(&self) -> Self;
    fn rotate_90_mut(&mut self);
    fn rotate_180(&self) -> Self;
    fn rotate_180_mut(&mut self);
    fn rotate_270(&self) -> Self;
    fn rotate_270_mut(&mut self);

    fn rotate_90_around(&self, pivot: V2) -> Self;
    fn rotate_90_around_mut(&mut self, pivot: V2);
    fn rotate_180_around(&self, pivot: V2) -> Self;
    fn rotate_180_around_mut(&mut self, pivot: V2);
    fn rotate_270_around(&self, pivot: V2) -> Self;
    fn rotate_270_around_mut(&mut self, pivot: V2);
}