You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using CoordinateTransformations
using GeometryBasics
using LinearAlgebra
using Rotations
# define transformations
s =LinearMap(Diagonal(Vec3f(1,1,2)))
r =LinearMap(RotX(0.5f0* π))
t =Translation(Vec3f(0,1,0))
srt = t ∘ r ∘ s
# vector to be transformed
p =Vec3f(1,2,3)
# display type of transformation output@showtypeof(s(p))
@showtypeof(r(p))
@showtypeof(t(p))
@showtypeof(srt(p))
@showtypeof(inv(s)(p))
@showtypeof(inv(r)(p))
@showtypeof(inv(t)(p))
@showtypeof(inv(srt)(p))
I was expecting that the output types of all transformations above would be Vec{3, Float32}, but for the inverse transformations I see multiple different output types.
Consider the following
I was expecting that the output types of all transformations above would be
Vec{3, Float32}
, but for the inverse transformations I see multiple different output types.The text was updated successfully, but these errors were encountered: