Skip to content

Commit e6cab17

Browse files
committed
relax types
1 parent aa75568 commit e6cab17

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/wing_geometry.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ Represents a wing composed of multiple sections with aerodynamic properties.
4848
mutable struct Wing
4949
n_panels::Int
5050
spanwise_panel_distribution::String
51-
spanwise_direction::Vector{Float64}
51+
spanwise_direction::PosVector
5252
sections::Vector{Section}
5353

5454
function Wing(n_panels::Int;
5555
spanwise_panel_distribution::String="linear",
56-
spanwise_direction::Vector{Float64}=[0.0, 1.0, 0.0])
56+
spanwise_direction::PosVector=MVec3([0.0, 1.0, 0.0]))
5757
new(n_panels,
5858
spanwise_panel_distribution,
5959
spanwise_direction,
@@ -67,8 +67,8 @@ end
6767
6868
Add a new section to the wing.
6969
"""
70-
function add_section!(wing::Wing, LE_point::Vector{Float64},
71-
TE_point::Vector{Float64}, aero_input::Union{String, Tuple{String, Vector{Float64}}})
70+
function add_section!(wing::Wing, LE_point::PosVector,
71+
TE_point::PosVector, aero_input::Union{String, Tuple{String, Vector{Float64}}})
7272
push!(wing.sections, Section(LE_point, TE_point, aero_input))
7373
end
7474

0 commit comments

Comments
 (0)