Loading [MathJax]/extensions/tex2jax.js
PISM, A Parallel Ice Sheet Model 2.2.2-d6b3a29ca committed by Constantine Khrulev on 2025-03-28
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
pism::Vector2d Class Reference

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.
 
Vector2doperator= (const Vector2d &other)
 
Vector2doperator= (const double &a)
 Set both components to the same number.
 
Vector2doperator+= (const Vector2d &other)
 
Vector2doperator-= (const Vector2d &other)
 
Vector2doperator*= (const double &a)
 
Vector2doperator/= (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
 

Detailed Description

This class represents a 2D vector field (such as ice velocity) at a certain grid point.

Definition at line 29 of file Vector2d.hh.


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