graphics_shape/
lib.rs

1#![deny(rustdoc::missing_crate_level_docs)]
2#![deny(missing_docs)]
3#![deny(missing_debug_implementations)]
4#![doc = include_str!("../Readme.md")]
5#![doc(html_logo_url = "https://raw.githubusercontent.com/oovm/graphics-rs/dev/.github/metadata/logo.svg")]
6#![doc(html_favicon_url = "https://raw.githubusercontent.com/oovm/graphics-rs/dev/.github/metadata/logo.svg")]
7#![doc(html_root_url = "https://docs.rs/shape-core/latest")]
8
9/// A macro to create a new graphics shape.
10pub type Point = shape_core::Point<f32>;
11/// A circle defined by center and radius.
12pub type Circle = shape_core::Circle<f32>;
13/// An ellipse defined by center and axes.
14pub type Ellipse = shape_core::Ellipse<f32>;
15/// A line segment of finite length, determined by a starting point and an ending point.
16pub type Line = shape_core::Line<f32>;
17/// A square without rotated.
18pub type Square = shape_core::Square<f32>;
19/// A rectangle without rotated.
20pub type Rectangle = shape_core::Rectangle<f32>;
21/// A triangle without rotated.
22pub type Triangle = shape_core::Triangle<f32>;
23/// A polygon without rotated.
24pub type Polygon = shape_core::Polygon<f32>;
25/// A polyline without rotated.
26pub type Polyline = shape_core::Polyline<f32>;
27/// A path defined by a sequence of points.
28pub type RegularPolygon = shape_core::RegularPolygon<f32>;