MCPcopy Create free account
hub / github.com/FastLED/FastLED / next_point

Function next_point

examples/Chromancer/gen.py:60–65  ·  view source on GitHub ↗
(pos: Point, angle: HexagonAngle, space: float)

Source from the content-addressed store, hash-verified

58
59
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
68def gen_points(

Callers 1

gen_pointsFunction · 0.85

Calls 4

cosFunction · 0.90
sinFunction · 0.90
toRadsFunction · 0.85
PointClass · 0.70

Tested by

no test coverage detected