2017-11-05 19:51:49 +13:00
|
|
|
defimpl Inspect, for: Kinemat.Frame do
|
|
|
|
alias Kinemat.Frame
|
|
|
|
import Inspect.Algebra
|
|
|
|
|
2018-01-19 10:40:56 +13:00
|
|
|
@spec inspect(Frame.t(), any) :: String.t()
|
2017-11-05 19:51:49 +13:00
|
|
|
def inspect(plane, opts) do
|
2018-01-19 10:40:56 +13:00
|
|
|
plane =
|
|
|
|
plane
|
|
|
|
|> Map.from_struct()
|
2017-11-05 19:51:49 +13:00
|
|
|
|> Enum.into([])
|
2018-01-19 10:40:56 +13:00
|
|
|
|
|
|
|
concat(["#Kinemat.Frame<", to_doc(plane, opts), ">"])
|
2017-11-05 19:51:49 +13:00
|
|
|
end
|
|
|
|
end
|