pub struct SmoothCornerGeometry {Show 16 fields
pub origin: Point,
pub incoming_axis: Vector,
pub outgoing_axis: Vector,
pub radius: f64,
pub smoothing: f64,
pub incoming_limit: f64,
pub outgoing_limit: f64,
pub angle: f64,
pub base_tangent: f64,
pub incoming_influence: f64,
pub outgoing_influence: f64,
pub alpha0: f64,
pub alpha1: f64,
pub middle_arc_angle: f64,
pub start: Point,
pub end: Point,
}Expand description
单个 smooth corner 解析后的参数,便于测试或调试 Sketch 对齐。
Fields§
§origin: Point原始角点。
incoming_axis: Vector从角点指向上一条边的单位方向。
outgoing_axis: Vector从角点指向下一条边的单位方向。
radius: f64clamp 后实际使用的核心圆半径。
smoothing: f64clamp 到 [0, 1] 后的平滑系数。
incoming_limit: f64incoming 方向的最大影响范围。
outgoing_limit: f64outgoing 方向的最大影响范围。
angle: f64incoming 与 outgoing 方向之间的夹角,单位为弧度。
base_tangent: f64核心圆在未平滑时的切点距离。
incoming_influence: f64incoming 方向最终影响范围。
outgoing_influence: f64outgoing 方向最终影响范围。
alpha0: f64incoming 侧过渡角,单位为弧度。
alpha1: f64outgoing 侧过渡角,单位为弧度。
middle_arc_angle: f64中间圆弧段角度,单位为弧度。
start: Point角点 smooth cubic 的起点。
end: Point角点 smooth cubic 的终点。
Trait Implementations§
Source§impl Clone for SmoothCornerGeometry
impl Clone for SmoothCornerGeometry
Source§fn clone(&self) -> SmoothCornerGeometry
fn clone(&self) -> SmoothCornerGeometry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SmoothCornerGeometry
impl Debug for SmoothCornerGeometry
Source§impl PartialEq for SmoothCornerGeometry
impl PartialEq for SmoothCornerGeometry
Source§fn eq(&self, other: &SmoothCornerGeometry) -> bool
fn eq(&self, other: &SmoothCornerGeometry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SmoothCornerGeometry
impl StructuralPartialEq for SmoothCornerGeometry
Auto Trait Implementations§
impl Freeze for SmoothCornerGeometry
impl RefUnwindSafe for SmoothCornerGeometry
impl Send for SmoothCornerGeometry
impl Sync for SmoothCornerGeometry
impl Unpin for SmoothCornerGeometry
impl UnsafeUnpin for SmoothCornerGeometry
impl UnwindSafe for SmoothCornerGeometry
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