mirror of https://github.com/emilk/egui.git
Emil Ernerfeldt
4 years ago
38 changed files with 187 additions and 97 deletions
@ -0,0 +1,24 @@ |
|||
[package] |
|||
name = "emath" |
|||
version = "0.7.0" |
|||
authors = ["Emil Ernerfeldt <emil.ernerfeldt@gmail.com>"] |
|||
description = "Minimal 2D math library for GUI work" |
|||
edition = "2018" |
|||
homepage = "https://github.com/emilk/egui" |
|||
license = "MIT OR Apache-2.0" |
|||
readme = "README.md" |
|||
repository = "https://github.com/emilk/egui" |
|||
categories = ["gui", "math"] |
|||
keywords = ["gui", "math"] |
|||
include = [ |
|||
"**/*.rs", |
|||
"Cargo.toml", |
|||
] |
|||
|
|||
[lib] |
|||
|
|||
[dependencies] |
|||
serde = { version = "1", features = ["derive"], optional = true } |
|||
|
|||
[features] |
|||
default = [] |
@ -0,0 +1,5 @@ |
|||
# emath - Egui Math Library |
|||
|
|||
A bare-bones 2D math library with types and functions useful for GUI building. |
|||
|
|||
Made for [`egui`](https://github.com/emilk/egui/). |
@ -1,6 +1,6 @@ |
|||
use std::ops::{Add, AddAssign, RangeInclusive, Sub, SubAssign}; |
|||
|
|||
use crate::math::*; |
|||
use crate::*; |
|||
|
|||
/// A position on screen.
|
|||
///
|
@ -1,6 +1,6 @@ |
|||
use std::ops::RangeInclusive; |
|||
|
|||
use crate::math::*; |
|||
use crate::*; |
|||
|
|||
/// A rectangular region of space.
|
|||
///
|
@ -1,6 +1,6 @@ |
|||
use std::ops::{Add, AddAssign, Div, Mul, MulAssign, Neg, RangeInclusive, Sub, SubAssign}; |
|||
|
|||
use crate::math::*; |
|||
use crate::*; |
|||
|
|||
/// A vector has a direction and length.
|
|||
/// A [`Vec2`] is often used to represent a size.
|
Loading…
Reference in new issue