elect
11/27/2020, 11:23 AM*
operator, so that this:
val s = "pos (%8.2f,%8.2f), uv (%.6f,%.6f)\n".format(v.pos.x, v.pos.y, v.uv.x, v.uv.y, v.col)
may become
val s = "pos (%8.2f,%8.2f), uv (%.6f,%.6f)\n".format(*v.pos, *v.uv)
Zach Klippenstein (he/him) [MOD]
11/27/2020, 1:14 PMZach Klippenstein (he/him) [MOD]
11/27/2020, 1:16 PMRuckus
11/27/2020, 3:29 PMYou can't, kotlin does not allow you to overload that operator.
Which is probably why it was posted in the proposals channel 😀
Zach Klippenstein (he/him) [MOD]
11/27/2020, 3:48 PMZach Klippenstein (he/him) [MOD]
11/27/2020, 3:49 PM