-
Notifications
You must be signed in to change notification settings - Fork 1
Built In Functions
NSIntegerMax edited this page Sep 30, 2018
·
19 revisions
In the following we list all built-in functions that are supported in Hydra. A described as function(parameter1:(Type1), parameter2:(Type2), ...).
circle(center:(Pol), radius:(Number))
Draws a hyperbolic circle with the passed radius, centered at the specified polar coordinate.
var r = 10
var point = Pol(r: 7.0, phi: M_PI / 8)
circle(center: point, radius: r)
clear()
Removes all objects from the canvas.
cos(x:(Number))
Evaluates the cosine function at the passed value.
var a = cos(x: M_PI) // a = -1