/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{distance as t}from"../../../../core/libs/gl-matrix-2/math/vec2.js";import{lerp as i}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as s}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{VerticalCylinderConstraint as r}from"../../sketch/constraints.js";import{fromVec3 as o,asVec2 as n}from"../../sketch/normalizedPoint.js";import{SnappingCandidate as e}from"./SnappingCandidate.js";import{LineSnappingHint as p}from"../hints/LineSnappingHint.js";import{RightAngleSnappingHint as a}from"../hints/RightAngleSnappingHint.js";class m extends e{constructor({targetPoint:e,point1:p,point2:a,isDraped:m}){super(e,new r(o(i(s(),p,a,.5)),.5*t(n(p),n(a))),m,2),this._p1=p,this._p2=a}get hints(){return[new p(1,this.targetPoint,this._p1,this.isDraped,this.domain),new p(1,this.targetPoint,this._p2,this.isDraped,this.domain),new a(this._p1,this.targetPoint,this._p2,this.isDraped,this.domain)]}}export{m as RightAngleTriangleSnappingCandidate};
