Method: Processing::GraphicsContext#tan

Defined in:
lib/processing/graphics_context.rb

#tan(angle) ⇒ Numeric

Returns the ratio of the sine and cosine of an angle.

Parameters:

  • angle (Numeric)

    angle in radians

Returns:

  • (Numeric)

    the tangent

See Also:



2839
2840
2841
# File 'lib/processing/graphics_context.rb', line 2839

def tan(angle)
  Math.tan angle
end