Working with the Int2 type and noticed the distance operation, which returns a float, seems to return an integer length, even when it should be calculating the length of a diagonal line.
By comparison when working with Vector2 you get the correct distance of 1.41 ish.
Int2 DistanceLength.vl (11.3 KB)
This is because the Length node (that Distance uses internally) returns an integer when it has an Int2 as input.
I’m not sure if this is a bug? Maybe there’s some maths reason for this.
On the surface it doesn’t seem to be the correct distance for computer graphics purposes.
Workaround is simple, turn it into vector2 first.