Skip to content

Commit

Permalink
A few tweaks to interdigit
Browse files Browse the repository at this point in the history
  • Loading branch information
ajkeller34 committed Apr 24, 2017
1 parent a784402 commit 65ae7cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
This will also be true for functions passed to `Paths.CPW` or `Paths.Trace`.
- Breaking change: `minimum` and `maximum` no longer defined for polygons; use `lowerleft`
and `upperright` instead.
- Breaking change: some of the methods in 'src/tags.jl' that you probably weren't using
anyway may have had changes to their method signatures.
- Breaking change: some of the methods in `src/tags.jl` may have had changes to their
method signatures.
- Breaking change: `flatten` always returns a `Cell`, never an array of `Polygon`s.
The behavior of `flatten!` (which modifies a `Cell`) is unchanged.
- Implement our own rendering algorithms. This enables continuous integration testing and
Expand Down
6 changes: 3 additions & 3 deletions src/tags.jl
Original file line number Diff line number Diff line change
Expand Up @@ -153,18 +153,18 @@ function grating!{T}(c::Cell{T}, line, space, size; kwargs...)
end

"""
interdigit!{T}(c::Cell{T}, width, length, xgap, ygap, npairs::Integer,
interdigit!{T}(c::Cell{T}, width, length, fingergap, fingeroffset, npairs::Integer,
skiplast=true; kwargs...)
Creates interdigitated fingers, e.g. for a lumped element capacitor.
- `width`: finger width
- `length`: finger length
- `xgap`: x-offset at ends of fingers
- `fingeroffset`: x-offset at ends of fingers
- `fingergap`: gap between fingers
- `npairs`: number of fingers
- `skiplast`: should we skip the last finger, leaving an odd number?
"""
function interdigit!{T}(c::Cell{T}, width, length, fingergap, fingeroffset, npairs::Integer,
skiplast; kwargs...)
skiplast=true; kwargs...)
for i in 1:npairs
render!(c, Rectangle(Point(zero(T), (i-1) * 2 * (width + fingergap)),
Point(length, (i-1) * 2 * (width + fingergap) + width); kwargs...))
Expand Down

0 comments on commit 65ae7cd

Please sign in to comment.