computes the delta angle between two normalized vectors.
| 733 | |
| 734 | // computes the delta angle between two normalized vectors. |
| 735 | angle vm_DeltaAngVecNorm(vector *v0, vector *v1, vector *fvec) { |
| 736 | angle a; |
| 737 | |
| 738 | a = FixAcos(vm_DotProduct(v0, v1)); |
| 739 | |
| 740 | if (fvec) { |
| 741 | vector t; |
| 742 | |
| 743 | vm_CrossProduct(&t, v0, v1); |
| 744 | if (vm_DotProduct(&t, fvec) < 0) |
| 745 | a = -a; |
| 746 | } |
| 747 | |
| 748 | return a; |
| 749 | } |
| 750 | |
| 751 | // Gets the real center of a polygon |
| 752 | // Returns the size of the passed in stuff |
no test coverage detected