Recent content by DanielKO

  1. D

    Graduate Accumulated rotation over time

    After thinking about this for a while, I don't think there's even a "minimal" rotation through a single axis. I'm not even sure what such minimal rotation would be; that is, how to compare different rotations. Intuitively I would think that a rotation performed by a physical angular spring in 3...
  2. D

    Graduate Accumulated rotation over time

    I understand that infinitesimal rotations are commutative. But I don't think they apply here. Take this example: Assuming a right-hand system, rotate the object 90° around Z (axis (0,0,1)). Then 90° around Y (axis (0,1,0)). At this point you should have the object's X axis on the world's Y...
  3. D

    Graduate Accumulated rotation over time

    They could be anything, whatever makes it easier to accomplish the final result: be able to tell how many times the object needs to turn on some axis to reach the initial orientation (I know that after the complete revolutions are finished the problem can be trivially solved). For example, it...
  4. D

    Graduate Accumulated rotation over time

    Assume an object rotates arbitrarily during some time (that is, not just along a single axis). At any given instant I would like know how much it rotated, so I could, for example, rotate it back to its original rotation with a spring (with torque proportional to the total angular displacement)...
  5. D

    C/C++ C++ Programming Quiz | Challenge Your Skills with Our Thread-based Quiz

    Because the plain comma operator is exactly the same present in the C language: it does nothing (other than separating two expressions by a sequence point, and evaluating to the second expression). Maybe you would like to consider the (void) conversion operator as "implicitly created by the...
  6. D

    C/C++ C++ Programming Quiz | Challenge Your Skills with Our Thread-based Quiz

    The default comma operator is just a sequence operator, that does absolutely nothing. If you are going to count it as an "implicit function", so does the add (+), increment (++), multiply (*), etc. :) I don't think new and delete count as "implicit"; I consider them built-in, just like the...
  7. D

    C/C++ C++ Programming Quiz | Challenge Your Skills with Our Thread-based Quiz

    This got a bit confusing. When destructing an object, you have to call the correct destructor; the virtual destructor plays the same role as virtual methods. Virtual destructors are useful when deleting the objects through a base pointer (like virtual methods are useful when calling the methods...