FastLED 3.9.15
Loading...
Searching...
No Matches

◆ next_point()

Point gen.next_point ( Point pos,
HexagonAngle angle,
float space )

Definition at line 60 of file gen.py.

60def next_point(pos: Point, angle: HexagonAngle, space: float) -> Point:
61 degrees = angle.value
62 angle_rad = toRads(degrees)
63 x = pos.x + space * cos(angle_rad)
64 y = pos.y + space * sin(angle_rad)
65 return Point(x, y)
66
67

References toRads().

Referenced by gen_points().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: