Skip to content

Commit

Permalink
Nicer import
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcardle committed Dec 24, 2022
1 parent 3a21cb6 commit fa8db42
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/tools/src/tools/CrosshairsTool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import {
resetElementCursor,
hideElementCursor,
} from '../cursors/elementCursor';
import { math } from '../utilities';
import liangBarksyClip from '../utilities/math/vec2/liangBarksyClip';
import vtkMath from '@kitware/vtk.js/Common/Core/Math';
import vtkMatrixBuilder from '@kitware/vtk.js/Common/Core/MatrixBuilder';
import * as lineSegment from '../utilities/math/line';
Expand Down Expand Up @@ -922,8 +922,8 @@ class CrosshairsTool extends AnnotationTool {

// Clipping lines to be only included in a box (canvas), we don't want
// the lines goes beyond canvas
math.vec2.liangBarksyClip(refLinePointOne, refLinePointTwo, canvasBox);
math.vec2.liangBarksyClip(refLinePointThree, refLinePointFour, canvasBox);
liangBarksyClip(refLinePointOne, refLinePointTwo, canvasBox);
liangBarksyClip(refLinePointThree, refLinePointFour, canvasBox);

// Computing rotation handle positions
const rotHandleOne = vec2.create();
Expand Down Expand Up @@ -1016,7 +1016,7 @@ class CrosshairsTool extends AnnotationTool {
);
vec2.add(stLinePointTwo, stLinePointTwo, canvasOrthoVectorFromCenter);

math.vec2.liangBarksyClip(stLinePointOne, stLinePointTwo, canvasBox);
liangBarksyClip(stLinePointOne, stLinePointTwo, canvasBox);

const stLinePointThree = vec2.create();
vec2.add(
Expand All @@ -1042,7 +1042,7 @@ class CrosshairsTool extends AnnotationTool {
canvasOrthoVectorFromCenter
);

math.vec2.liangBarksyClip(stLinePointThree, stLinePointFour, canvasBox);
liangBarksyClip(stLinePointThree, stLinePointFour, canvasBox);

// points for slab thickness handles
const stHandleOne = vec2.create();
Expand Down

0 comments on commit fa8db42

Please sign in to comment.