Aim - Create a C++ program to draw an arrow:
- between 2 given coordinates
- arms of length as a given ratio to its body length
- arms at specified incline to the body
Given:
- Start point of arrow as
(x1, y1)
and end point(x2, y2).
Eg:(2, 3) and (10, 100)
- Ratio provided =
x : y
. Eg1:10
- Incline of arrow arms (in degrees) =
θ
. Eg:θ=67
Attempt 1
Attempt 1 relies on individually calculating the slope of all 3 lines and finding points of the arrow by combining equations of distance formula
, tangent slope
for...