Skip to content
Discussion options

You must be logged in to vote

There seems to be a deficiency in the gdext math library. I'll update it. Until then, please add the following after the import statement to work around it.

import std/math

func angle*[T: SomeFloat](self: Vector[2, T]): T =
  arctan2(self.y, self.x)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@panno8M
Comment options

Answer selected by panno8M
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants