Sin

The   NWScript command returns the sine of a float. That is, this command returns the -coordinate (in the Cartesian plane) of the endpoint of the line segment, originating at , of length 1 that forms an angle with the positive  -axis of size equal to the provided value, measured in degrees. (Thus, the returned value will never be greater than 1 nor less than -1.) For positive angles less than 90 degrees, this is equivalent to taking the ratio of the lengths of two sides of a right triangle with an angle of the indicated measure &mdash; specifically, the length of the leg opposite to the angle divided by the length of the hypotenuse.