Angle Type By Dot Product
Computer Mathematics
Medium
2 views
Problem Description
Given two 2D vectors, print ACUTE/RIGHT/OBTUSE.
Input Format
ax ay bx by.
Constraints
Values fit 64-bit
Official Solution
Compute dot=ax*bx+ay*by. If dot==0 RIGHT, if >0 ACUTE else OBTUSE.
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!