PISM, A Parallel Ice Sheet Model  stable v2.0.4 committed by Constantine Khrulev on 2022-05-25 12:02:27 -0800
Public Member Functions | Public Attributes | List of all members
pism::Vector2 Class Reference

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

#include <Vector2.hh>

Public Member Functions

 Vector2 ()
 
 Vector2 (double a, double b)
 
 Vector2 (const Vector2 &other)
 
double magnitude_squared () const
 Magnitude squared. More...
 
double magnitude () const
 Magnitude. More...
 
Vector2operator= (const Vector2 &other)
 
Vector2operator= (const double &a)
 Set both components to the same number. More...
 
Vector2operator+= (const Vector2 &other)
 
Vector2operator-= (const Vector2 &other)
 
Vector2operator*= (const double &a)
 
Vector2operator/= (const double &a)
 
Vector2 operator+ (const Vector2 &other) const
 Adds two vectors. More...
 
Vector2 operator- (const Vector2 &other) const
 Substracts two vectors. More...
 
Vector2 operator* (const double &a) const
 Scales a vector. More...
 
Vector2 operator/ (const double &a) const
 Scales a vector. More...
 

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 Vector2.hh.


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