Skip to content

Commit

Permalink
Fix relative worlds
Browse files Browse the repository at this point in the history
  • Loading branch information
giopaglia committed Nov 25, 2024
1 parent 9bc87a3 commit 05d1124
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/utils/algebras/worlds/geometrical-worlds.jl
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,16 @@ struct RelativeGeometricalWorld{W<:GeometricalWorld} <: GeometricalWorld
# TODO assert xyz \in [0,1] ...?
end

innerworld(w::RelativeGeometricalWorld) = w.w
@forward RelativeGeometricalWorld.w (
Base.length,
inlinedisplay,
goeswithdim,
nparameters,
Base.getindex,
X, Y, Z, dimensionality,
)

const RelativePoint{N,T<:Real} = RelativeGeometricalWorld{Point{N,T}}
const RelativeInterval{T<:Real} = RelativeGeometricalWorld{Interval{T}}
const RelativeInterval2D{T<:Real} = RelativeGeometricalWorld{Interval2D{T}}

0 comments on commit 05d1124

Please sign in to comment.