Post

Replies

Boosts

Views

Activity

Comment on How to set instance of a property of the same class type
I have decided to convert a lib into Swift since it's the one library that works for me in Android. And the Clipper libraries do not work with the data that I am using. The instance of "this" is the class itself. e.g. this class https://github.com/ChristianLutz/gpcj/blob/master/gpcj/src/main/java/com/seisw/util/geom/Clip.java line 1536. Currently, I added a setter method instead as a workaround. But i dont think it will work in this scenario PolySimple.java (please use same url) line 333
Topic: Programming Languages SubTopic: Swift Tags:
Feb ’23
Comment on Replace substring using regex in a string
Hi @claude31 it is solved now. my function works. The problem was my isCelsius parameter kept returning false, hence why I thought nothing was changed. But i think my conversion between farehnheit and celsius has issues regarding the roundOff() function. 75.2 returns 76, instead of 75.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Mar ’23
Comment on How to set instance of a property of the same class type
I have decided to convert a lib into Swift since it's the one library that works for me in Android. And the Clipper libraries do not work with the data that I am using. The instance of "this" is the class itself. e.g. this class https://github.com/ChristianLutz/gpcj/blob/master/gpcj/src/main/java/com/seisw/util/geom/Clip.java line 1536. Currently, I added a setter method instead as a workaround. But i dont think it will work in this scenario PolySimple.java (please use same url) line 333
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Feb ’23