Skip to content

Commit

Permalink
update around fields of UnitQuaternion
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrodium committed Nov 10, 2021
1 parent f5c7b46 commit 21d588b
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/unitquaternion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,6 @@ function Quaternions.Quaternion(q::UnitQuaternion)
return q.q
end

function Base.getproperty(q::UnitQuaternion, s::Symbol)
if s == :q
return getfield(q,:q)
elseif s == :w
return getfield(q,:q).s
elseif s == :x
return getfield(q,:q).v1
elseif s == :y
return getfield(q,:q).v2
elseif s == :z
return getfield(q,:q).v3
end
end

# Pass in Vectors
@inline function (::Type{Q})(q::AbstractVector, normalize::Bool = true) where Q <: UnitQuaternion
check_length(q, 4)
Expand Down

0 comments on commit 21d588b

Please sign in to comment.