Skip to content
This repository has been archived by the owner on Oct 23, 2022. It is now read-only.

fixed the geometry's transpose function #358

Merged
merged 3 commits into from
Feb 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Geometry/Transform.jl
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ id*m #returns a matrix filled with Unitful quantities. If both matrices had to b
"""
Base.:*(transform::Transform{T},m::SMatrix{4,N,S}) where{N,T<:Real,S<:Number} = matrix(transform)*m

Base.transpose(a::Transform{T}) where{T<:Real} = Transform{T}(a')
Base.transpose(a::Transform{T}) where{T<:Real} = Transform{T}(a.matrix')

# END of functions for compatibility with base matrix API

Expand Down