PISM, A Parallel Ice Sheet Model
stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800
|
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. More... | |
double | magnitude () const |
Magnitude. More... | |
Vector2d & | operator= (const Vector2d &other) |
Vector2d & | operator= (const double &a) |
Set both components to the same number. More... | |
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. More... | |
Vector2d | operator- (const Vector2d &other) const |
Substracts two vectors. More... | |
Vector2d | operator* (const double &a) const |
Scales a vector. More... | |
Vector2d | operator/ (const double &a) const |
Scales a vector. More... | |
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.