pub struct EdgeGeometry {
pub points: Vec<Vec2>,
pub cubic: Option<[Vec2; 4]>,
pub label: Vec2,
pub end_dir: Vec2,
pub bounds: Rect,
}Fields§
§points: Vec<Vec2>世界坐标折线,首点为源锚点、末点为目标锚点(命中、虚线、绘入截断都基于它)。
cubic: Option<[Vec2; 4]>贝塞尔边的 [起点, 控制点 1, 控制点 2, 终点],视图层可直接用 cubic_bezier_to 绘制。
label: Vec2标签中心(按弧长取中点)。
end_dir: Vec2终点切线方向(单位向量,画箭头用)。
bounds: RectImplementations§
Source§impl EdgeGeometry
impl EdgeGeometry
Trait Implementations§
Source§impl Clone for EdgeGeometry
impl Clone for EdgeGeometry
Source§impl Debug for EdgeGeometry
impl Debug for EdgeGeometry
Source§impl PartialEq for EdgeGeometry
impl PartialEq for EdgeGeometry
impl StructuralPartialEq for EdgeGeometry
Auto Trait Implementations§
impl Forget for EdgeGeometry
impl Freeze for EdgeGeometry
impl Move for EdgeGeometry
impl RefUnwindSafe for EdgeGeometry
impl Send for EdgeGeometrywhere
RawVecInner: Send,
impl Sync for EdgeGeometrywhere
RawVecInner: Sync,
impl Unpin for EdgeGeometry
impl UnsafeUnpin for EdgeGeometry
impl UnwindSafe for EdgeGeometrywhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more