Author Topic: vectors  (Read 6911 times)

doomagent13

  • Posts: 506
  • Turrets: +18/-18
vectors
« on: August 15, 2007, 12:10:15 am »
Does anyone know where I can find the bodies of the various Vector* methods?  In particular, I would like the "VectorMA" method body.

tehOen

  • Guest
vectors
« Reply #1 on: August 15, 2007, 12:20:43 am »
q_math.c q_shared.h q_shared.c

/dev/humancontroller

  • Posts: 1033
  • Turrets: +1002/-383
vectors
« Reply #2 on: August 15, 2007, 12:22:05 am »
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

  • Posts: 506
  • Turrets: +18/-18
vectors
« Reply #3 on: August 15, 2007, 12:33:41 am »
Thanks.  My OS's search function was naming practically every source file for tremulous.

Eeeew Spiders

  • Posts: 213
  • Turrets: +13/-7
vectors
« Reply #4 on: August 15, 2007, 12:49:58 pm »
Quote from: "doomagent13"
Thanks.  My OS's search function was naming practically every source file for tremulous.

Quote from: "/dev/humancontroller"
Please 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

  • Guest
vectors
« Reply #5 on: August 15, 2007, 01:02:38 pm »
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

  • Posts: 2737
  • Turrets: +291/-295
vectors
« Reply #6 on: August 15, 2007, 04:19:12 pm »
EMAC*gets punched out by a vim user*
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok 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

  • Posts: 506
  • Turrets: +18/-18
vectors
« Reply #7 on: August 15, 2007, 04:26:28 pm »
I have a MAC...

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

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
vectors
« Reply #8 on: August 15, 2007, 04:29:54 pm »
Quote from: "doomagent13"
I 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#msg169333
Ok 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

  • Posts: 2309
  • Turrets: +222/-191
    • Haos Redro
vectors
« Reply #9 on: August 15, 2007, 06:58:01 pm »
Yay editor wars!

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
vectors
« Reply #10 on: August 15, 2007, 08:32:54 pm »
Quote from: "Taiyo.uk"
Yay 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#msg169333
Ok 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

  • Posts: 317
  • Turrets: +18/-17
vectors
« Reply #11 on: August 16, 2007, 01:10:28 pm »
Quote from: "doomagent13"
terminal to compile.

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

benmachine

  • Posts: 915
  • Turrets: +99/-76
    • ben's machinery
vectors
« Reply #12 on: August 16, 2007, 02:31:58 pm »
gcc and make. gcc takes a little getting used to, but make is really as simple as that.

Code: [Select]
cd /tremulous/source/folder/
make
benmachine

doomagent13

  • Posts: 506
  • Turrets: +18/-18
vectors
« Reply #13 on: August 16, 2007, 09:11:45 pm »
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.