(cog->pattern {:keys [addendum-radius dedendum-radius pitch-radius tooth-angle
basic-wheel hole-type hole-radius no-hollows
hollow-radius]
:as cog}
guides?)(cog-tooth->points {:keys [start foot-start mid-start top-start top-end mid-end
foot-end end]})A wheel with teeth
A wheel with teeth
(engages? this other-cog)Is this and the other cog at the right distance to engage without crashing?
Is this and the other cog at the right distance to engage without crashing?
Two things that collide
Two things that collide
(crash? this other)Do this and the other intersect?
Do this and the other intersect?
It's basically a circle
It's basically a circle
(cx this)Centre X
Centre X
(cy this)Centry Y
Centry Y
(dist-to-point this [x y])(dist-to-point this G__18742)Distance from centre to point x,y
Distance from centre to point x,y
(distance-to this other-wheel)Distance between the centres of the two wheels
Distance between the centres of the two wheels
(hit? this [x y])(hit? this G__18744)Does point x y fall inside the circle?
Does point x y fall inside the circle?
(make-cog cx
cy
no-teeth
pitch-radius
addendum
dedendum
clearance
tooth-thickness
top-thickness
hole-type
hole-radius
no-hollows
hollow-radius)(make-cog-tooth {:keys [basic-wheel pitch-radius addendum-radius dedendum-radius
tooth-thickness top-thickness tooth-angle]
:as cog-wheel}
a)(spaced-engaged cog ratio)(spaced-engaged cog ratio hole-type hole-radius no-hollows hollow-radius)(spawn-connected {:keys [no-teeth tooth-thickness top-thickness addendum
dedendum clearance circular-pitch]
:as cog}
a-ratio
hole-type
hole-radius
no-hollows
hollow-radius)cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |