Fabric.js cos() Method
The cos() method is used to return the cosine of a specified angle expressed in radians or degrees which is in range [-inf, +inf]. The returned value is in range [-1, +1].
Parameters: This method accepts a parameter as mentioned above and described below:
- angle: This parameter holds the specified angle in radians or degrees.
Return Value: This method returns the value in the range of -1 to +1.