|
PISM, A Parallel Ice Sheet Model 2.2.2-d6b3a29ca committed by Constantine Khrulev on 2025-03-28
|
This class represents a 2D vector field (such as ice velocity) at a certain grid point. More...
#include <Vector2d.hh>
Public Member Functions | |
| Vector2d () | |
| Vector2d (double a, double b) | |
| Vector2d (const Vector2d &other) | |
| double | magnitude_squared () const |
| Magnitude squared. | |
| double | magnitude () const |
| Magnitude. | |
| Vector2d & | operator= (const Vector2d &other) |
| Vector2d & | operator= (const double &a) |
| Set both components to the same number. | |
| Vector2d & | operator+= (const Vector2d &other) |
| Vector2d & | operator-= (const Vector2d &other) |
| Vector2d & | operator*= (const double &a) |
| Vector2d & | operator/= (const double &a) |
| Vector2d | operator+ (const Vector2d &other) const |
| Adds two vectors. | |
| Vector2d | operator- (const Vector2d &other) const |
| Substracts two vectors. | |
| Vector2d | operator* (const double &a) const |
| Scales a vector. | |
| Vector2d | operator/ (const double &a) const |
| Scales a vector. | |
Public Attributes | |
| double | u |
| double | v |
This class represents a 2D vector field (such as ice velocity) at a certain grid point.
Definition at line 29 of file Vector2d.hh.