G4ScaleTransform is a class for geometric scaling transformations. It supports efficient arbitrary transformation of points, vectors and normals and the computation of compound and inverse transformations.
More...
#include <G4ScaleTransform.hh>
|
| | G4ScaleTransform () |
| | G4ScaleTransform (G4double sx, G4double sy, G4double sz) |
| | G4ScaleTransform (const G4ThreeVector &scale) |
| | G4ScaleTransform (const G4Scale3D &scale) |
| | G4ScaleTransform (const G4ScaleTransform &right) |
| G4ScaleTransform & | operator= (const G4ScaleTransform &right) |
| void | Init () |
| const G4ThreeVector & | GetScale () const |
| const G4ThreeVector & | GetInvScale () const |
| void | SetScale (const G4ThreeVector &scale) |
| void | SetScale (const G4Scale3D &scale) |
| void | SetScale (G4double sx, G4double sy, G4double sz) |
| void | Transform (const G4ThreeVector &global, G4ThreeVector &local) const |
| G4ThreeVector | Transform (const G4ThreeVector &global) const |
| void | InverseTransform (const G4ThreeVector &local, G4ThreeVector &global) const |
| G4ThreeVector | InverseTransform (const G4ThreeVector &local) const |
| void | TransformNormal (const G4ThreeVector &global, G4ThreeVector &local) const |
| G4ThreeVector | TransformNormal (const G4ThreeVector &global) const |
| void | InverseTransformNormal (const G4ThreeVector &local, G4ThreeVector &global) const |
| G4ThreeVector | InverseTransformNormal (const G4ThreeVector &local) const |
| G4double | TransformDistance (G4double dist, const G4ThreeVector &dir) const |
| G4double | TransformDistance (G4double safety) const |
| G4double | InverseTransformDistance (G4double dist, const G4ThreeVector &dir) const |
| G4double | InverseTransformDistance (G4double safety) const |
G4ScaleTransform is a class for geometric scaling transformations. It supports efficient arbitrary transformation of points, vectors and normals and the computation of compound and inverse transformations.
Definition at line 63 of file G4ScaleTransform.hh.
◆ G4ScaleTransform() [1/5]
| G4ScaleTransform::G4ScaleTransform |
( |
| ) |
|
|
inline |
◆ G4ScaleTransform() [2/5]
Constructor with scale parameters on each axis.
- Parameters
-
| [in] | sx | Scaling in X. |
| [in] | sy | Scaling in Y. |
| [in] | sz | Scaling in Z. |
◆ G4ScaleTransform() [3/5]
| G4ScaleTransform::G4ScaleTransform |
( |
const G4ThreeVector & | scale | ) |
|
|
inline |
Constructor taking a 3-vector.
- Parameters
-
| [in] | scale | Scaling transformation. |
◆ G4ScaleTransform() [4/5]
| G4ScaleTransform::G4ScaleTransform |
( |
const G4Scale3D & | scale | ) |
|
|
inline |
Constructor taking a Scale3D.
- Parameters
-
| [in] | scale | Scaling transformation. |
◆ G4ScaleTransform() [5/5]
Copy constructor and assignment operator.
◆ GetInvScale()
◆ GetScale()
Accessors returning a reference to the scale and inverse scale transformations.
◆ Init()
| void G4ScaleTransform::Init |
( |
| ) |
|
|
inline |
Updates the backed-up inverse scale and special conversion factors based on the values of the scale. Needed at initialisation and whenever the scale has changed value.
◆ InverseTransform() [1/2]
◆ InverseTransform() [2/2]
Methods to transform a point from local to global frame.
◆ InverseTransformDistance() [1/2]
Transforms a distance 'dist' along a given direction 'dir' from local to global frame.
◆ InverseTransformDistance() [2/2]
Transforms a 'safety' distance from local to global frame (conservative).
◆ InverseTransformNormal() [1/2]
◆ InverseTransformNormal() [2/2]
Methods to transform a normal from local to global frame.
◆ operator=()
◆ SetScale() [1/3]
| void G4ScaleTransform::SetScale |
( |
const G4Scale3D & | scale | ) |
|
|
inline |
◆ SetScale() [2/3]
Modifiers for the scale transformation.
◆ SetScale() [3/3]
◆ Transform() [1/2]
◆ Transform() [2/2]
Methods to transform a point from global to local frame.
◆ TransformDistance() [1/2]
Transforms a distance 'dist' along a given direction 'dir' from global to local frame.
◆ TransformDistance() [2/2]
Transforms a 'safety' distance from global to local frame (conservative).
◆ TransformNormal() [1/2]
◆ TransformNormal() [2/2]
Methods to transform a normal from global to local frame.
The documentation for this class was generated from the following file: