Panda3D
Loading...
Searching...
No Matches
linearEulerIntegrator.h
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file linearEulerIntegrator.h
10 * @author charles
11 * @date 2000-06-13
12 */
13
14#ifndef LINEAREULERINTEGRATOR_H
15#define LINEAREULERINTEGRATOR_H
16
17#include "linearIntegrator.h"
18
19/**
20 * Performs Euler integration on a vector of physically modelable objects
21 * given a quantum dt.
22 */
23class EXPCL_PANDA_PHYSICS LinearEulerIntegrator : public LinearIntegrator {
24PUBLISHED:
26 virtual ~LinearEulerIntegrator();
27
28 virtual void output(std::ostream &out) const;
29 virtual void write(std::ostream &out, int indent=0) const;
30
31private:
32 virtual void child_integrate(Physical *physical,
33 LinearForceVector& forces,
34 PN_stdfloat dt);
35};
36
37#endif // EULERINTEGRATOR_H
Performs Euler integration on a vector of physically modelable objects given a quantum dt.
Pure virtual base class for physical modeling.
virtual void write(std::ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
virtual void output(std::ostream &out) const
Write a string representation of this instance to <out>.
Defines a set of physically modeled attributes.
Definition physical.h:37
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
Definition indent.cxx:20
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.