smooth_frame/lib.rs
1//! Sketch-like smooth corner / smooth frame 的 cubic Bezier 几何库。
2//!
3//! 低层类型 [`SmoothCorner`] 支持任意凸角;[`SmoothFrame`] 负责闭合凸多边形;
4//! [`SmoothRect`] 只是矩形便捷封装。
5
6#![warn(missing_docs)]
7
8mod corner;
9mod error;
10mod frame;
11mod geometry;
12mod math;
13mod path;
14mod rect;
15
16pub use corner::{SmoothCorner, SmoothCornerGeometry};
17pub use error::SmoothError;
18pub use frame::SmoothFrame;
19pub use geometry::{Point, Vector};
20pub use path::{CubicSegment, PathCommand, SmoothPath};
21pub use rect::SmoothRect;