f74836dfd3
* Run code formatter. * Credo doesn't like `mix format`'s line length. * Fix failing tests re `Angle`.
14 lines
318 B
Elixir
14 lines
318 B
Elixir
defimpl Inspect, for: Kinemat.Cartesian do
|
|
alias Kinemat.Cartesian
|
|
import Inspect.Algebra
|
|
|
|
@spec inspect(Cartesian.t(), any) :: String.t()
|
|
def inspect(angle, opts) do
|
|
angle =
|
|
angle
|
|
|> Map.from_struct()
|
|
|> Enum.into([])
|
|
|
|
concat(["#Kinemat.Point<", to_doc(angle, opts), ">"])
|
|
end
|
|
end
|