@@ -17,10 +17,10 @@ Add a new axes node to `frames`.
1717 [`add_axes_fixedoffset!`](@ref) and [`add_axes_root!`](@ref).
1818"""
1919function add_axes! (
20- frames:: FrameSystem{O,N } , name:: Symbol , id:: Int ,
21- funs:: FrameAxesFunctions{O,N } = FrameAxesFunctions {O,N } (),
20+ frames:: FrameSystem{O,T } , name:: Symbol , id:: Int ,
21+ funs:: FrameAxesFunctions{O,T } = FrameAxesFunctions {O,T } (),
2222 parentid= nothing
23- ) where {O,N <: Number }
23+ ) where {O,T <: Number }
2424
2525 if has_axes (frames, id)
2626 # Check if a set of axes with the same ID is already registered within
@@ -64,7 +64,7 @@ function add_axes!(
6464
6565
6666 # Create point
67- node = FrameAxesNode {O,N } (name, id, parentid, funs)
67+ node = FrameAxesNode {O,T } (name, id, parentid, funs)
6868
6969 # Insert new point in the graph
7070 add_axes! (frames, node)
@@ -86,10 +86,10 @@ represented by `dcm`, a Direction Cosine Matrix (DCM).
8686See also [`add_axes!`](@ref).
8787"""
8888function add_axes_fixedoffset! (
89- frames:: FrameSystem{O,N } , name:: Symbol , id:: Int , parent, dcm:: DCM{N }
90- ) where {O,N }
89+ frames:: FrameSystem{O,T } , name:: Symbol , id:: Int , parent, dcm:: DCM{T }
90+ ) where {O,T }
9191
92- funs = FrameAxesFunctions {O,N } (t -> Rotation {O} (dcm))
92+ funs = FrameAxesFunctions {O,T } (t -> Rotation {O} (dcm))
9393 add_axes! (frames, name, id, funs, axes_id (frames, parent))
9494end
9595
@@ -107,9 +107,9 @@ despite the rotation depends on time).
107107See also [`add_axes!`](@ref).
108108"""
109109function add_axes_projected! (
110- frames:: FrameSystem{O,N } , name:: Symbol , id:: Int , parent, fun:: Function
111- ) where {O,N }
112- funs = FrameAxesFunctions {O,N } (t -> Rotation {O} (fun (t)))
110+ frames:: FrameSystem{O,T } , name:: Symbol , id:: Int , parent, fun:: Function
111+ ) where {O,T }
112+ funs = FrameAxesFunctions {O,T } (t -> Rotation {O} (fun (t)))
113113 add_axes! (frames, name, id, funs, axes_id (frames, parent))
114114end
115115
@@ -134,17 +134,17 @@ If `δfun`, `δ²fun` or `δ³fun` are not provided, they are computed via autom
134134 function does not perform any checks on the output types.
135135"""
136136function add_axes_rotating! (
137- frames:: FrameSystem{O,N } , name:: Symbol , id:: Int , parent, fun,
137+ frames:: FrameSystem{O,T } , name:: Symbol , id:: Int , parent, fun,
138138 δfun= nothing , δ²fun= nothing , δ³fun= nothing ,
139- ) where {O,N }
139+ ) where {O,T }
140140
141141 for (order, fcn) in enumerate ([δfun, δ²fun, δ³fun])
142142 if (O < order + 1 && ! isnothing (fcn))
143143 @warn " ignoring $fcn , frame system order is less than $(order+ 1 ) "
144144 end
145145 end
146146
147- funs = FrameAxesFunctions {O,N } (
147+ funs = FrameAxesFunctions {O,T } (
148148 t -> Rotation {O} (fun (t)),
149149
150150 # First derivative
0 commit comments