check if two angles are in opposite direction
$ npm install --save is-opposed-angle
true if first and second argument are opposed angles. By default the angles must be passed in radian.
const isOpposedAngle = ;;//=> true// Use the options argument for degrees;//=> true
isOpposedAngle(angle1, angle2, [options]) :
First angle by default it is assumed to be in radian format. See options for using other angle units.
Second angle by default it is assumed to be in radian format. See options for using other angle units.
angle2 values in degrees.
If the angle difference is not exactly opposite but within
tolerance it is still considered opposed. Should be supplied in same unit as angle.
MIT © anoff