Skip to content

Commit 6c0b6f3

Browse files
committed
Fix sign
1 parent e56c5c8 commit 6c0b6f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/kite_geometry.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,15 @@ function create_interpolations(vertices, circle_center_z, radius, gamma_tip)
124124
leading_edges[1, j] = Inf
125125
for (i, v) in enumerate(vertices)
126126
# Rotate y coordinate to check box containment
127-
rotated_y = v[2] * cos(gamma) - vz_centered[i] * sin(gamma)
128-
if gamma 0.0 && -0.5 rotated_y 0.0
127+
rotated_y = v[2] * cos(-gamma) - vz_centered[i] * sin(-gamma)
128+
if gamma 0.0 && 0.0 rotated_y 0.5
129129
if v[1] > trailing_edges[1, j]
130130
trailing_edges[:, j] .= v
131131
end
132132
if v[1] < leading_edges[1, j]
133133
leading_edges[:, j] .= v
134134
end
135-
elseif gamma > 0.0 && 0.0 rotated_y 0.5
135+
elseif gamma > 0.0 && -0.5 rotated_y 0.0
136136
if v[1] > trailing_edges[1, j]
137137
trailing_edges[:, j] .= v
138138
end

0 commit comments

Comments
 (0)