angleDy method

double angleDy(
  1. double degrees,
  2. double radius
)

For a given angle and radius, finds the Y portion of the offset. @param {number} degrees Angle in degrees (zero points in +X direction). @param {number} radius Radius. @return {number} The y-distance for the angle and radius.

Implementation

double angleDy(double degrees, double radius)
{
  return radius * Math.sin(degreesToRadians(degrees));
}