oliframe 0.3.8

Add a simple border to one or more images
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! A point is a location in a two-dimensional space.
use derive_getters::Getters;

/// A point is a location in a two-dimensional space.
#[derive(Debug, Getters, PartialEq)]
pub struct Point {
    /// The x-coordinate of the point.
    x: u32,
    /// The y-coordinate of the point.
    y: u32,
}

impl Point {
    /// Create a new point with the given coordinates.
    pub fn new(x: u32, y: u32) -> Self {
        Self { x, y }
    }
}