Do sine, cosine, and tangent functions only work for right triangles?
Look up law of cosines and law of sines