@shopware-ag/dive
Version:
Shopware Spatial Framework
10 lines (9 loc) • 383 B
TypeScript
import { Vector3 } from 'three';
/**
* Calculate the signed angle between two vectors. Only works when the vectors are on the same plane.
* @param vecB Start Vector
* @param vecA Target Vector
* @param planeNormal The vector's plane normal
* @returns Signed angle in radians
*/
export default function signedAngleTo(vecA: Vector3, vecB: Vector3, planeNormal: Vector3): number;