Menu

#987 Point( function_index ) does not return the right data-type

open
nobody
None
compiler
2023-10-03
2023-10-03
No

'Point()' provides two syntaxes to the user:

result = Point( coord_x, coord_y [,buffer] )
or
result = Point( function_index ) 'Ulong'

but the same return data-type 'Ulong' is used for both syntaxes.

For the first syntax that returns a color value, this 'Ulong' data-type is well suited.

But for the second syntax that returns a coordinate value, this same data-type is poorly suited, because in case of view coordinate, the value can be negative and even have a decimal part.

The best solution would be for the second syntax to return a 'Single' data-type (like for 'Pmap()'), while keeping a 'Ulong' return data-type for the first syntax.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB