acadrust 0.6.6

A pure Rust library for reading and writing CAD files in DXF format (ASCII and Binary) and DWG format (Binary).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::super::transform;
use super::*;

pub(crate) fn mirror_leader(e: &mut Leader, transform: &Transform) {
    if !valid_transform(transform) {
        return;
    }
    let block_offset = transform.apply_rotation(e.block_offset);
    let annotation_offset = transform.apply_rotation(e.annotation_offset);
    let origin = transform.apply(e.origin);
    transform::transform_leader(e, transform);
    e.block_offset = block_offset;
    e.annotation_offset = annotation_offset;
    e.origin = origin;
    e.common.raw_record = None;
}