Interface IDragConstraint
Methods
intersect
- intersect(viewport: IViewportApi, node: ITreeNode, ray: IRay): undefined | { distance: number; transformation: mat4; dragAnchor?: IDragAnchor }
Parameters
Returns undefined | { distance: number; transformation: mat4; dragAnchor?: IDragAnchor }
setup
- setup(viewport: IViewportApi, node: ITreeNode, ray: IRay, intersection: IIntersection, previousDragMatrix: mat4): undefined | { distance: number; transformation: mat4; dragAnchor?: IDragAnchor }
Parameters
node: ITreeNode
previousDragMatrix: mat4
Returns undefined | { distance: number; transformation: mat4; dragAnchor?: IDragAnchor }
Intersect the drag constraint with the ray provided. Returns the distance to the drag constraint and the transformation matrix calculated.