pub struct Arc {
pub rx: f64,
pub ry: f64,
pub rotation_angle: f64,
pub large_arc: bool,
pub sweep_direction: bool,
pub end_point: (f64, f64),
}Expand description
圆弧路径方法。
图 56 圆弧的结构。用于描述椭圆弧线段。
对应 Java: org.ofdrw.core.graph.tight.method.Arc
Fields§
§rx: f64椭圆长轴半径。
ry: f64椭圆短轴半径。
rotation_angle: f64旋转角度(度),正值顺时针。
large_arc: bool是否大圆弧(角度 > 180)。
sweep_direction: bool是否顺时针方向。
end_point: (f64, f64)结束点 (x, y)。
Implementations§
Trait Implementations§
impl StructuralPartialEq for Arc
Source§impl XmlElement for Arc
impl XmlElement for Arc
Source§fn element_name(&self) -> &'static str
fn element_name(&self) -> &'static str
对应 Java: Arc 元素名 “Arc”。
Source§fn from_xml(node: &XmlNode) -> Result<Self, XmlElementError>
fn from_xml(node: &XmlNode) -> Result<Self, XmlElementError>
从节点树解析(对应 ofdrw 解析侧;quick-xml 产物)。 Read more
Source§fn child_nodes(&self) -> Vec<XmlNode>
fn child_nodes(&self) -> Vec<XmlNode>
子元素(作为
XmlNode 提供,便于嵌套序列化)。Source§fn text_content(&self) -> Option<&str>
fn text_content(&self) -> Option<&str>
文本内容(简单文本元素)。
Auto Trait Implementations§
impl Freeze for Arc
impl RefUnwindSafe for Arc
impl Send for Arc
impl Sync for Arc
impl Unpin for Arc
impl UnsafeUnpin for Arc
impl UnwindSafe for Arc
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