forked from 1b-agent/opencadstudio-upstream
refactor: unify eye() to a single f64 accessor (drop eye_f64)
The whole pipeline is relative-to-eye now, so the f32/f64 split is vestigial. Merge eye_f64 into eye() returning DVec3; direction-only callers take .as_vec3(). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
bbf148f601
commit
2507a8fe55
2 files changed
+12
-19
No files matched your search
+3
-3
@@ -102,7 +102,7 @@ impl OpenCADStudio {
|
||||
grips_to_screen_rte(
|
||||
&tab.selected_grips,
|
||||
cam.view_proj_rte(bounds),
|
||||
cam.eye_f64(),
|
||||
cam.eye(),
|
||||
bounds,
|
||||
)
|
||||
} else if is_paper {
|
||||
@@ -185,7 +185,7 @@ impl OpenCADStudio {
|
||||
let plane = grid_plane_from_camera(cam.pitch, cam.yaw);
|
||||
overlay::GridParams {
|
||||
view_rot: cam.view_proj_rte(bounds),
|
||||
eye: cam.eye_f64(),
|
||||
eye: cam.eye(),
|
||||
bounds,
|
||||
plane,
|
||||
origin,
|
||||
@@ -227,7 +227,7 @@ impl OpenCADStudio {
|
||||
let ost_points: Vec<overlay::OstTrackPoint> = if self.snapper.otrack_enabled {
|
||||
let (view_rot, eye) = {
|
||||
let cam = tab.scene.camera.borrow();
|
||||
(cam.view_proj_rte(vp_bounds), cam.eye_f64())
|
||||
(cam.view_proj_rte(vp_bounds), cam.eye())
|
||||
};
|
||||
self.snapper
|
||||
.tracking_points
|
||||
|
||||
Reference in new issue
Block a user