Thread: Storing position/velocity of agents -- opinions wanted

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Apr 2010
    Posts
    88

    Storing position/velocity of agents -- opinions wanted

    Hi,

    I have to do some 2D and 3D agent-based-models, need to track position/velocity of agents. In the past I had used some vector and agent classes I had written myself. Lately, I find the vector class cumbersome and have become more acquainted with std::vector.

    I figure I could do the simulations I have to do by just adjusting my agent class to use std::vector -- I don't think I can outdo STL code. Any thoughts? Is there any hypothetical benefit to keeping custom vector classes anymore? I need them only to track floating-point co-ordinates in 2 or 3-space.

    EDIT: The reason I made vector classes in the first place was during my first learning stages with c++. I haven't done agent-based simulations in a while, and so I am looking at my old code and would like to improve it. If anyone with graphics programming experience can weigh in on the most efficient way to store position, velocity of agents which you have to animate in openGL.
    Last edited by Ocifer; 02-02-2012 at 11:08 AM.
    W7, Ubuntu -- mingw, gcc, g++, code::blocks, emacs, notepad++

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Expert opinions wanted!
    By MK27 in forum Linux Programming
    Replies: 8
    Last Post: 11-01-2011, 10:14 AM
  2. Velocity of an object
    By hdragon in forum Game Programming
    Replies: 1
    Last Post: 03-16-2006, 01:35 PM
  3. Programming Microsoft Agents
    By Fizzer in forum Windows Programming
    Replies: 5
    Last Post: 08-31-2003, 06:38 PM
  4. Opinions Wanted
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 03-04-2002, 09:56 AM