Skip to content

Documentation / @geoverse/editor-core / rotationFromDrag

Function: rotationFromDrag()

ts
function rotationFromDrag(
   origin, 
   start, 
   current): number;

Defined in: packages/editor-core/src/gizmo.ts:82

拖拽旋转:返回相对起点的角度增量(度)。

Parameters

origin

Position

start

Position

current

Position

Returns

number