Gromacs  2024.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
gmx::TranslateAndScale Class Reference

#include <gromacs/math/include/gromacs/math/coordinatetransformation.h>

Description

Transform coordinates in three dimensions by first translating, then scaling them.

Public Member Functions

 TranslateAndScale (const RVec &scale, const RVec &translation)
 Construct a three-dimensional coordinate transformation. Coordinates are first translated, then scaled. More...
 
 TranslateAndScale (const TranslateAndScale &other)
 Copy constructor.
 
TranslateAndScaleoperator= (const TranslateAndScale &other)
 Copy assignment.
 
 TranslateAndScale (TranslateAndScale &&other) noexcept
 Move constructor.
 
TranslateAndScaleoperator= (TranslateAndScale &&other) noexcept
 Move assignment.
 
void operator() (ArrayRef< RVec > coordinates) const
 Perform a coordinate transformation on input coordinates. More...
 
void operator() (RVec *coordinate) const
 Perform a coordinate transformation on a coordinate. More...
 
ScaleCoordinates scaleOperationOnly () const
 Returns the scaling operation, discarding the translation.
 

Constructor & Destructor Documentation

gmx::TranslateAndScale::TranslateAndScale ( const RVec scale,
const RVec translation 
)

Construct a three-dimensional coordinate transformation. Coordinates are first translated, then scaled.

Parameters
[in]translationto be performed on the coordinates
[in]scaleto be applied to the coordinates

Member Function Documentation

void gmx::TranslateAndScale::operator() ( ArrayRef< RVec coordinates) const

Perform a coordinate transformation on input coordinates.

Parameters
[in]coordinatesto be transformed
void gmx::TranslateAndScale::operator() ( RVec coordinate) const

Perform a coordinate transformation on a coordinate.

Parameters
[in]coordinateto be transformed

The documentation for this class was generated from the following files: