109 inline const vector&
L()
const;
TypeName("cuboid")
Runtime type information.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
const word & name() const
Return name.
scalar m() const
Return the mass of the rigid-body.
virtual ~cuboid()
Destructor.
const vector & c() const
Return the centre of mass of the rigid-body.
A class for handling words, derived from Foam::string.
virtual void write(Ostream &) const
Write.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
const vector & L() const
Return the lengths of the sides of the cuboid.
virtual autoPtr< rigidBody > clone() const
Return clone of this cuboid.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
cuboid(const word &name, const scalar m, const vector &c, const vector &L)
Construct from name, mass, centre of mass and lengths of the sides.