Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - RetroX

Function Peer Review / Re: Brainstorming
« on: March 26, 2010, 08:29:21 PM »
Also, completely random and useless functions that I made for another program:
Code: [Select]
template<typename type>
inline type csc(type value) { return 1/sin(value); }

template<typename type>
inline type sec(type value) { return 1/cos(value); }

template<typename type>
inline type cot(type value) { return 1/tan(value); }

template<typename type>
inline type acsc(type value) { return asin(1/value); }

template<typename type>
inline type asec(type value) { return acos(1/value); }

template<typename type>
inline type acot(type value) { return atan(1/value); }

template<typename type>
inline type acot2(type valuey,type valuex) { return atan2(valuex,valuey); }

template<typename type>
inline type csch(type value) { return 1/sinh(value); }

template<typename type>
inline type sech(type value) { return 1/cosh(value); }

template<typename type>
inline type coth(type value) { return 1/tanh(value); }

template<typename type>
inline type acsch(type value) { return asinh(1/value); }

template<typename type>
inline type asech(type value) { return acosh(1/value); }

template<typename type>
inline type acoth(type value) { return atanh(1/value); }

template<typename type>
inline type acoth2(type valuey,type valuex) { return atanh2(valuex,valuey); }

Announcements / Re: Collisions
« on: March 26, 2010, 08:20:46 PM »
For as many as you like.
How can you manage this with cstdarg?  Or was it something else

Announcements / Re: Collisions
« on: March 26, 2010, 08:16:35 PM »
min(x,y,z) = min(x,min(y,z))
for up to 64 arguments?

Announcements / Re: Collisions
« on: March 26, 2010, 07:25:37 PM »
Random question that goes somewhat along with collision_polygon: how did you manage to get max() and min() working (they're marked as done on the list) without a separate variable for the number of arguments?  Was it because of the parser adding them in?

Off-Topic / Re: Cat
« on: March 26, 2010, 06:12:16 PM »
I first expected the animal when I entered this topic.

Most of the GNU code is either comments or whitespace, anyways.  But I do agree that it's a whole lot of code.

Announcements / Re: Collisions
« on: March 26, 2010, 06:05:27 PM »
Would it be possible to implement collision_triangle at some point, once the GM functions are done?  That seems to be pretty much the only one that's missing.

Announcements / Re: Summary
« on: March 26, 2010, 01:56:44 PM »
Also, I am going to start correcting you every single time that you say "Linux" and not "GNU/Linux" when you're not referring to the kernel.

Off-Topic / Re: Who hear is from the GMC?
« on: March 26, 2010, 01:55:12 PM »
I'm not deaf, and I've hardly been to the GMC at all.

Announcements / Re: Summary
« on: March 26, 2010, 09:51:43 AM »
clock() is accurate for me.

Code: [Select]
#include <iostream>
#include <cstdlib>
#include <ctime>
#include <cmath>

int main()
  clock_t current=0,previous=0;
  std::cout << 10 << std::endl;
  while (true)
    if (floor(current/CLOCKS_PER_SEC)!=floor(previous/CLOCKS_PER_SEC))
      std::cout << 10-(double)current/CLOCKS_PER_SEC << std::endl;
    if (current/CLOCKS_PER_SEC>=10)
      return EXIT_SUCCESS;
  return EXIT_SUCCESS;

Function Peer Review / Re: Brainstorming
« on: March 23, 2010, 09:00:03 PM »

Announcements / Re: Another quickie
« on: March 23, 2010, 08:56:25 PM »
Vista isn't compatible with MinGW?  What?  It's compatible with 7.

Function Peer Review / Re: Brainstorming
« on: March 21, 2010, 05:55:20 PM »
I is doing collisions.
Everyone keep your grubby hands off dem collisions.

Function Peer Review / Brainstorming
« on: March 21, 2010, 02:02:35 PM »
Here's my idea.

Yes, r4 isn't even released, yet.  But we can still help; I mean, most of us know C++ enough to help make some of the functions.

This includes functions that may be useful and aren't on the list.

If it's already made, then... oh, well, I guess.  Also, it's not official or anything at this point, unless Josh decides to make it that way.

Here's the list that hasn't been updated.

Also, even if you don't know C++ or aren't coding anything, you can still post suggestions.

Off-Topic / Re: Essay
« on: March 21, 2010, 01:02:53 PM »
Yes, I did mean libraries in general, but I will use DLL because most users can relate to that name better, and I'll probably use EXE because Unix doesn't have an extension and "exe" is short for "executable" anyway.
Usually, you can assume that anything without an extension is an application, or a text file.

Appending "EXE" makes it assumed as a Windows EXE.

Off-Topic / Re: Essay
« on: March 17, 2010, 08:17:12 PM »
The problem with DLL-loading functions is that it won't be cross-platform, unless you use WINE.  .so doesn't support loading functions from strings; it's linked on compile time.