Search found 701 matches

by Ref
Sun Aug 15, 2021 2:51 pm
Forum: Support and Development
Topic: Boolean function for intersection between circular segment and circle
Replies: 32
Views: 19442

Re: Boolean function for intersection between circular segment and circle

Hi pgimeno! Sorry for late reply but have suffered a major power outage. Discovered that the edge case failures in my code was related to " relational operator" failure. When determining if circle was within radius of sector, the conditional statement occasional fails. dis = distance of ci...
by Ref
Tue Aug 10, 2021 8:47 pm
Forum: Support and Development
Topic: Boolean function for intersection between circular segment and circle
Replies: 32
Views: 19442

Re: Boolean function for intersection between circular segment and circle

Uncle!
I give up.
What's going on bright eyes.
Any help appreciated.
by Ref
Tue Aug 10, 2021 3:08 pm
Forum: Support and Development
Topic: Boolean function for intersection between circular segment and circle
Replies: 32
Views: 19442

Re: Boolean function for intersection between circular segment and circle

As far as I can tell, we are all beating the same dead horse. Haven't found any edge cases but am sure eagle eyes will find some. --[[ format: circle: c = { x, y, r } arc: a = { x, y, a1, a2, l } a.a = ( a.a2 + a.a1 ) / 2 -- arc center angle a.w = abs( a.a2 - a.a1 ) / 2 -- arc half width ]] contactA...
by Ref
Mon Aug 09, 2021 8:50 pm
Forum: Support and Development
Topic: Boolean function for intersection between circular segment and circle
Replies: 32
Views: 19442

Re: Boolean function for intersection between circular segment and circle

Don't know what kind of monster I've created but really doesn't have much to do with the original request.
by Ref
Sun Aug 08, 2021 11:00 pm
Forum: Support and Development
Topic: Boolean function for intersection between circular segment and circle
Replies: 32
Views: 19442

Re: Boolean function for intersection between circular segment and circle

Such is life.
Always nice to create beautiful solutions to non-problems.
Had to add a check to see if the center of the arc was inside the circle.
by Ref
Sun Aug 08, 2021 6:07 pm
Forum: Support and Development
Topic: Boolean function for intersection between circular segment and circle
Replies: 32
Views: 19442

Re: Boolean function for intersection between circular segment and circle

Ouch!
Officially stomped on!
Forgot about zero angle crossing.
Revised demo attached.
No contest. Just reviewing trig. After all, who can compete with pgimeno
Thanks pgimeno for help.
by Ref
Tue Apr 13, 2021 2:02 am
Forum: Games and Creations
Topic: texsphere
Replies: 0
Views: 9495

texsphere

Just trying to figure out how to texturize a circle to make like a fake sphere.
by Ref
Tue Apr 13, 2021 1:31 am
Forum: Games and Creations
Topic: SnowFlakes
Replies: 5
Views: 3856

Re: SnowFlakes

And this is what I though SnowFlakes was going to be about.