21 Mar
2015
21 Mar
'15
8:01 p.m.
Hi,
I'd do something like this:
from math import sqrt, atan2, cos, pi
def hexagon(pos):
x, y = pos
r, phi = sqrt(x**2 + y**2), atan2(y, x)
return r_inner < r * cos(phi - round(phi / (pi / 6))) < r_outer
I didn't test this function, so there may be errors, but the overall
idea should be clear.
Best,
Anton
On Fri, Mar 20, 2015 at 7:25 PM, Jonas da Silva Nascimento
Hi,
I want make a hexagonal quantum ring. I thought about using straight-lines (12-lines) for limit the points between its, but I will have many lines code. Has someone a better idea? Other thing, I want calculate the current density as function of a defect in a of the arm. Is it possible?
Thank for help me.
Jonas