DNDSR 0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
Loading...
Searching...
No Matches
Vec2 Struct Reference

Public Member Functions

 Vec2 ()=default
 
 Vec2 (double a, double b)
 
Vec2operator= (const Vec2 &)=default
 
void operator+= (const Vec2 &o)
 
void operator*= (double s)
 
void operator*= (const Vec2 &o)
 
void setConstant (double s)
 
void addTo (const Vec2 &o, double s)
 
double norm () const
 

Public Attributes

double x = 0
 
double y = 0
 

Detailed Description

Definition at line 40 of file test_ODE.cpp.

Constructor & Destructor Documentation

◆ Vec2() [1/2]

Vec2::Vec2 ( )
default

◆ Vec2() [2/2]

Vec2::Vec2 ( double  a,
double  b 
)
inline

Definition at line 44 of file test_ODE.cpp.

Member Function Documentation

◆ addTo()

void Vec2::addTo ( const Vec2 o,
double  s 
)
inline

Definition at line 50 of file test_ODE.cpp.

◆ norm()

double Vec2::norm ( ) const
inline

Definition at line 51 of file test_ODE.cpp.

◆ operator*=() [1/2]

void Vec2::operator*= ( const Vec2 o)
inline

Definition at line 48 of file test_ODE.cpp.

◆ operator*=() [2/2]

void Vec2::operator*= ( double  s)
inline

Definition at line 47 of file test_ODE.cpp.

◆ operator+=()

void Vec2::operator+= ( const Vec2 o)
inline

Definition at line 46 of file test_ODE.cpp.

◆ operator=()

Vec2 & Vec2::operator= ( const Vec2 )
default

◆ setConstant()

void Vec2::setConstant ( double  s)
inline

Definition at line 49 of file test_ODE.cpp.

Member Data Documentation

◆ x

double Vec2::x = 0

Definition at line 42 of file test_ODE.cpp.

◆ y

double Vec2::y = 0

Definition at line 42 of file test_ODE.cpp.


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