pub struct PmiLayoutStyle {
pub arrow: f64,
pub text_height: f64,
pub view_dir: [f64; 3],
pub view_up: [f64; 3],
pub plane: Option<PmiPlane>,
}Expand description
Sizing and orientation inputs.
Fields§
§arrow: f64Arrowhead length (world units).
text_height: f64Text cap height (world units) — sizes datum / FCF frames.
view_dir: [f64; 3]The unit viewing direction (eye → target): arrowheads and frames lie in the plane perpendicular to it.
view_up: [f64; 3]The camera’s unit up vector.
plane: Option<PmiPlane>The annotation’s picked plane: the drawing lies IN it (label and
measured points projected onto it, its normal and text direction
replacing the camera’s). None aligns to the camera.
Trait Implementations§
Source§impl Clone for LayoutStyle
impl Clone for LayoutStyle
Source§fn clone(&self) -> LayoutStyle
fn clone(&self) -> LayoutStyle
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 moreimpl Copy for LayoutStyle
Auto Trait Implementations§
impl Freeze for LayoutStyle
impl RefUnwindSafe for LayoutStyle
impl Send for LayoutStyle
impl Sync for LayoutStyle
impl Unpin for LayoutStyle
impl UnsafeUnpin for LayoutStyle
impl UnwindSafe for LayoutStyle
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