Skip to main content
TikTok Effect House Platform Logo
Download
로그인
Transform

Angle Between

Calculate the angle between two vectors. Supported types: Vec2 and Vec3.

Input

NameData typeDescription
AVec2The first vector
BVec2The second vector

Output

NameData typeDescription
ResultNumberThe acute angle between the two input vectors in radians

Example

This demo shows how to use Angle Between to detect if the ray from the camera is hitting the sphere within the 5 degrees, then the sphere will turn red.

↓ AngleBetween.zip