forked from 1b-agent/opencadstudio-upstream
feat(ucs): dynamic-input deltas and angle in the active UCS
The on-canvas dynamic-input boxes measured relative X/Y deltas and the polar angle in world axes. They now read in the active UCS plane (via UcsXform::vec_to_ucs on the offset-invariant delta), matching the UCS ortho/polar constraints and coordinate readout. Identity UCS reproduces the world-frame values; absolute first-point fields are unchanged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
d78ed60582
commit
b676874a6f
2 files changed
+13
-5
No files matched your search
@@ -110,7 +110,6 @@ impl UcsXform {
|
||||
}
|
||||
|
||||
/// WCS direction → UCS (rotation only, no origin shift).
|
||||
#[allow(dead_code)]
|
||||
pub(super) fn vec_to_ucs(&self, v: glam::Vec3) -> glam::Vec3 {
|
||||
glam::Vec3::new(v.dot(self.x), v.dot(self.y), v.dot(self.z))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user