[][src]Module lyon_geom::math

Basic types that are used everywhere. Most other lyon crates reexport them.

Traits

Transform

Anything that can be transformed in 2D.

Functions

point

Shorthand for Point::new(x, y).

rect

Shorthand for Rect::new(Point::new(x, y), Size::new(w, h)). Shorthand for Rect::new(Point2D::new(x, y), Size2D::new(w, h)).

size

Shorthand for Size::new(x, y). Shorthand for Size2D::new(w, h).

vector

Shorthand for Vector::new(x, y). Convenience constructor.

Type Definitions

Angle

An angle in radians (f32).

F64Point

Alias for euclid::default::Point2D<f64>.

Point

Alias for euclid::default::Point2D<f32>.

Rect

Alias for euclid::default::Rect<f32>

Rotation2D

Alias for euclid::default::Rotation2D<f32>

Size

Alias for euclid::default::Size2D<f32>.

Transform2D

Alias for euclid::default::Transform2D<f32>

Vector

Alias for euclid::default::Point2D<f32>.