Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IDragConstraint

Hierarchy

  • IDragConstraint

Implemented by

Index

Methods

  • intersect(viewport: IViewportApi, node: ITreeNode, ray: IRay): 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.

    Parameters

    Returns undefined | { distance: number; transformation: mat4; dragAnchor?: IDragAnchor }

  • setup(viewport: IViewportApi, node: ITreeNode, ray: IRay, intersection: IIntersection, previousDragMatrix: mat4): undefined | { distance: number; transformation: mat4; dragAnchor?: IDragAnchor }
  • Setup the current drag constraint and return the first intersection.

    Parameters

    Returns undefined | { distance: number; transformation: mat4; dragAnchor?: IDragAnchor }