www.mooseframework.org
EFAPoint.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #ifndef EFAPOINT_H
9 #define EFAPOINT_H
10 
11 class EFAPoint
12 {
13 public:
14  EFAPoint(const double x = 0., const double y = 0., const double z = 0.);
15 
16 private:
17  double _x;
18  double _y;
19  double _z;
20 
21 public:
22  double operator()(const unsigned int i) const;
23  EFAPoint & operator/=(const double a);
24  EFAPoint & operator*=(const double a);
25  EFAPoint & operator+=(const EFAPoint & point);
26  EFAPoint operator*(const double a);
27  double operator*(const EFAPoint & point);
28  EFAPoint operator+(const EFAPoint & point);
29  EFAPoint operator-(const EFAPoint & point);
30  double norm();
31  void zero();
32  EFAPoint cross(const EFAPoint & point);
33 };
34 
35 #endif
EFAPoint & operator+=(const EFAPoint &point)
Definition: EFAPoint.C:49
EFAPoint operator-(const EFAPoint &point)
Definition: EFAPoint.C:74
EFAPoint cross(const EFAPoint &point)
Definition: EFAPoint.C:94
void zero()
Definition: EFAPoint.C:86
EFAPoint & operator*=(const double a)
Definition: EFAPoint.C:40
EFAPoint operator+(const EFAPoint &point)
Definition: EFAPoint.C:68
double _y
Definition: EFAPoint.h:18
double _z
Definition: EFAPoint.h:19
double norm()
Definition: EFAPoint.C:80
EFAPoint operator*(const double a)
Definition: EFAPoint.C:57
EFAPoint(const double x=0., const double y=0., const double z=0.)
Definition: EFAPoint.C:12
double _x
Definition: EFAPoint.h:17
double operator()(const unsigned int i) const
Definition: EFAPoint.C:15
EFAPoint & operator/=(const double a)
Definition: EFAPoint.C:31