News:

Come Chat with us live! Learn how HERE!

Main Menu

vectors

Started by doomagent13, August 15, 2007, 12:10:15 AM

doomagent13

Does anyone know where I can find the bodies of the various Vector* methods?  In particular, I would like the "VectorMA" method body.

tehOen

q_math.c q_shared.h q_shared.c

/dev/humancontroller

Please learn to use grep or your IDE's "go to definition" function.

By default (#if 1), q_shared.h defines C macros near line 408. Otherwise it declares (through #define-style typedefs) real functions, that reside in q_math.c, below line 1090.

EDIT: too slow.
tehOen: q_shared.c?

doomagent13

Thanks.  My OS's search function was naming practically every source file for tremulous.

Eeeew Spiders

Quote from: doomagent13Thanks.  My OS's search function was naming practically every source file for tremulous.
Quote from: /dev/humancontrollerPlease learn to use grep or your IDE's "go to definition" function.

if you are using windows and don't have a proper IDE, use atleast something like Notepad++ or Textpad, that feature search in files. I am sure other OS's have free good editors too.

tehOen

SciTe all the way :D
works both on linux and win, linux version has gtk interface and windows version has win32 interface. so it looks quite native on both OS

kevlarman

EMAC*gets punched out by a vim user*
Quote from: Asvarox link=topic=8622.msg169333#msg169333Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

doomagent13

I have a MAC...

I use XCode to code in, and terminal to compile.

kevlarman

Quote from: doomagent13I have a MAC...

I use XCode to code in, and terminal to compile.
the vim thing should have been a hint that an S was cut off...(EMACS meant Editor MACroS long before you guys stole it for the name a computer (in fact it has existed longer than apple as a company))
Quote from: Asvarox link=topic=8622.msg169333#msg169333Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

Taiyo.uk


kevlarman

Quote from: Taiyo.ukYay editor wars!
GNU EMACS vs Apple Emacs, this is clearly an OS war and not an editor war  :D
Quote from: Asvarox link=topic=8622.msg169333#msg169333Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

Samurai.mac

Quote from: doomagent13terminal to compile.
If I may go further off topic for a moment, how do you use Terminal to compile code from Xcode?

benmachine

gcc and make. gcc takes a little getting used to, but make is really as simple as that.

cd /tremulous/source/folder/
make
benmachine

doomagent13

I just use XCode to edit code in because it color-codes things.

For example, comments are red, strings/characters are green, constant numbers are blue, and preprocessor commands are brown.