Functions Index :: C :: Circle
Module:
Definition:
Circle(float x, float radius, bool "up_part", float "xc", float "yc")
Description:
Returns the y-value of x so that the point (x,y) lies on a circle defined by its radius and its center (xc,yc).
If xc or yc are not provided they default to zero.
up_part determines whether the point will be on the upper or lower semi-circle. If up_part is true or omitted it will on the upper semi-circle (ie >= yc), else on the lower (ie < yc).
Examples:
y_u = Circle(Pi()/4, 1) # y_u == Pi()/4
y_d = Circle(Pi()/4, 1, false) # y_d == -Pi()/4
y = Circle(5, 5, xc=5, yc=-5) # y == 0