Yashe
Yashe
CC#
Created by Matt on 2/11/2023 in #help
❔ What is the difference between these two pieces of code?
But you can do more complex stuff and for example make a property which will return some element from a list, or do some mathfs before. If the player max health is 100, current is 65 and you want a field that represents the missing health you can make a private property: private int MissingHealth => MaxHealth - CurrentHealth and you can't do it while declaring the variable
13 replies
CC#
Created by Matt on 2/11/2023 in #help
❔ What is the difference between these two pieces of code?
The first one is body expresion of a property as phaseshift already tell. When you are using '=' sign you are declearing a field and assigning a value : variable = value With this '=>' you are referencing something for example it can be simple as: public int Score => score : this propery reference to an existing score field variable or public int Health => playerController.Health : in this case you are referencing something from another class for example
13 replies
CC#
Created by Yashe on 2/10/2023 in #help
❔ ✅The largest inscribed circle inside concave (non-convex) polygon 2D
25 replies
CC#
Created by Yashe on 2/10/2023 in #help
❔ ✅The largest inscribed circle inside concave (non-convex) polygon 2D
Thanks, I manage to find a way to do this! I lost my internet connection on PC so here is an phone image of the result
25 replies
CC#
Created by Yashe on 2/10/2023 in #help
❔ ✅The largest inscribed circle inside concave (non-convex) polygon 2D
And concave polygons are way more complex to compute
25 replies
CC#
Created by Yashe on 2/10/2023 in #help
❔ ✅The largest inscribed circle inside concave (non-convex) polygon 2D
25 replies
CC#
Created by Yashe on 2/10/2023 in #help
❔ ✅The largest inscribed circle inside concave (non-convex) polygon 2D
25 replies
CC#
Created by Yashe on 2/10/2023 in #help
❔ ✅The largest inscribed circle inside concave (non-convex) polygon 2D
they all have their own implementation of queue and as I'm testing these neither of them yield promising result tbh. The last one created via Unity has a memory leak
25 replies
CC#
Created by Yashe on 2/10/2023 in #help
❔ ✅The largest inscribed circle inside concave (non-convex) polygon 2D
https://github.com/mapbox/polylabel/issues/26 I'm trying to implement this poly label in c# but with no luck.. unfortunately
25 replies
CC#
Created by Yashe on 2/10/2023 in #help
❔ ✅The largest inscribed circle inside concave (non-convex) polygon 2D
Yeah, it's voronoi for sure
25 replies
CC#
Created by Yashe on 2/10/2023 in #help
❔ ✅The largest inscribed circle inside concave (non-convex) polygon 2D
Oh, sorry xD I write it early in the morning and I didn't mind to correct you!
25 replies
CC#
Created by Yashe on 2/10/2023 in #help
❔ ✅The largest inscribed circle inside concave (non-convex) polygon 2D
Verenoi diagram*
25 replies
CC#
Created by Yashe on 2/10/2023 in #help
❔ ✅The largest inscribed circle inside concave (non-convex) polygon 2D
I'm pretty sure I need to use verenoi diagram fro this but not so sure how to do it 😆
25 replies
CC#
Created by Yashe on 2/10/2023 in #help
❔ ✅The largest inscribed circle inside concave (non-convex) polygon 2D
Thanks! There is a repo which tried to convert the original poly label.js into C# but unfortunately it has some forbidden library requiremnt
25 replies