/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{distance as t}from"../../../../core/libs/gl-matrix-2/math/vec2.js";import{l as i}from"../../../../chunks/vec32.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 n,asVec2 as o}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 h extends e{constructor({targetPoint:e,point1:p,point2:a,isDraped:h}){super(e,new r(n(i(s(),p,a,.5)),.5*t(o(p),o(a))),h,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{h as RightAngleTriangleSnappingCandidate};
