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.
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 »
526
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); }
527
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
528
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?
529
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?
531
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.
532
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.
533
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.
534
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)
{
previous=current;
current=clock();
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;
}
536
Announcements / Re: Another quickie
« on: March 23, 2010, 08:56:25 pm »
Vista isn't compatible with MinGW? What? It's compatible with 7.
537
Function Peer Review / Re: Brainstorming
« on: March 21, 2010, 05:55:20 pm »I is doing collisions.Rite.
Everyone keep your grubby hands off dem collisions.
538
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.
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.
539
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.