B4J Question [B4X] Why does B4XCanvas use float when the coordinate systems uses doubles?

keirS

Well-Known Member
Licensed User
Longtime User
I am curious as to why this is? Backward comparability with 32bit IOS devices where CGFloat isn't a double value?
 

keirS

Well-Known Member
Licensed User
Longtime User
I am using B4XRect to define bounding boxes.. So it's a case of casting a double to a float. Isn't it possible there could be edge cases where the B4XView touch action coordinates would be inside the bounding box if a double was used and outside when using a float?
 
Upvote 0

keirS

Well-Known Member
Licensed User
Longtime User
I am not using the MouseMoved event. I am using the TOUCH_ACTION_UP, TOUCH_ACTION_DOWN and TOUCH_ACTION_MOVE events for cross platform compatability hence my question.
.
 
Upvote 0
Top