mormonman
2011-08-27 06:37:00
Anybody got the ArcTan2 source?
2011-08-27 06:37:00
2011-08-27 06:53:50
{$ifndef FPC_MATH_HAS_ARCTAN2}
function arctan2(y,x : float) : float;
begin
if (x=0) then
begin
if y=0 then
arctan2:=0.0
else if y>0 then
arctan2:=pi/2
else if y<0 then
arctan2:=-pi/2;
end
else
ArcTan2:=ArcTan(y/x);
if x<0.0 then
ArcTan2:=ArcTan2+pi;
if ArcTan2>pi then
ArcTan2:=ArcTan2-2*pi;
end;
{$endif FPC_MATH_HAS_ARCTAN2}
2011-08-27 17:34:49
2011-08-27 17:37:17
From: mormonman
I just wanted to see if it did what I thought it did. I guess I should have looked through FPC, when I didn't find it in simba.
2011-08-27 19:21:41
2011-08-27 20:13:28
2011-08-28 05:26:25
2011-08-28 06:20:55
From: Wizzup?
Remember that Wizzyplugin and Simba are GNU GPL licensed. You can't just rip the code without also using the GNU GPL in all your code. (Which means open sourcing it) The same goes for FPC's code. Unless you get explicit permission of course.
As for your problem, I don't think I can help, you probably just ported it wrong…? Recall that ArcTan2 is nothing more than ArcTan with a simple exception.
2011-08-28 06:35:04
From: mormonman
I'm just using it for testing purposes, not releasing it. So there won't be any problems with that. It's kind of just a personal project. If it was ever released of course it would be open source and licensed. I have no reason not to do that. I couldn't find the root of the problem, so I solved it by using another method…although it wouldn't be too hard to just import the wizzyplugin. This may come off as a bit rude, but I really don't see what your problem is with scar or freddy. Open source can't mean so much to you that anytime you see someone mention scar you must instantly throw some anti comments in there. It has to be something else besides that. *Please to not go off on me, I'm just a little curious as to the reasons*
From: mormonman
If it was ever released of course it would be open source and licensed. I have no reason not to do that.
2011-08-28 09:18:13
From: Wizzup?
I don't always ``throw anti comments'' in threads, I usually only comment if people are doing exactly the opposite - anti comments for Simba, in which case I point them at their logical flaws.
From: Wizzup?
In Simba, you can use script settings. (They write XML to the settings.xml)
Support for SQLite or similar is planned. Or you can write to INI files.
From: Freddy1990
But has no relevance since the question was about SCAR.
2011-08-28 09:57:00
From: Echo_
I agree with mormonman on this issue. In fact, I'll go find an anticomment as an example right now.
E: Here's one from the SCAR section:
Which isn't exactly fair since Freddy never goes into Simba question threads and posts the working alternative in SCAR.