/*!
 * Copyright (c) 2026 Vertex Software LLC. All rights reserved.
 */
import{p as t,l as n}from"./p-DfdVaPrt.js";function e(t,e){const{camera:r,viewport:s}=e;const a=r.isPointBehindNear(t.start);const d=r.isPointBehindNear(t.end);if(a||d){const e=r.intersectLineWithNear(t);const o=n.create({start:a&&e!=null?e:t.start,end:d&&e!=null?e:t.end});const i=n.transformMatrix(o,r.projectionViewMatrix);return{start:s.transformVectorToViewport(i.start),end:s.transformVectorToViewport(i.end),hideStart:a,hideEnd:d}}else{const e=n.transformMatrix(t,r.projectionViewMatrix);return{start:s.transformVectorToViewport(e.start),end:s.transformVectorToViewport(e.end),hideStart:false,hideEnd:false}}}function r(n,r,a){const{start:d,end:o,hideStart:i,hideEnd:c}=e(n,a);const l=t.lerp(d,o,.5);const u=r!=="none"?s(n,r,a):undefined;return{startPt:d,endPt:o,labelPt:l,indicatorPt:u,hideStart:i,hideEnd:c}}function s(t,n,e){return e.viewport.transformWorldToViewport(n==="start"?t.start:t.end,e.camera.projectionViewMatrix)}export{r as g,e as t};
//# sourceMappingURL=p-5qvNYaER.js.map