COSMOS core  1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
Cosmos::Math::Vectors Namespace Reference

Classes

class  eulerVector
 
class  geodeticVector
 
class  sphericalVector
 
class  Vector
 Vector Class. More...
 

Functions

Vector operator* (const double scale, const Vector &v)
 Reverse scalar product. More...
 
std::ostream & operator<< (std::ostream &out, const Vector &v)
 
Vector eye (double scale)
 
Vector unitxV (double scale)
 
Vector unityV (double scale)
 
Vector unitzV (double scale)
 

Function Documentation

Vector Cosmos::Math::Vectors::operator* ( const double  scale,
const Vector v 
)

Reverse scalar product.

Calculate the scalar product with the provided scale.

Parameters
scaleScale to multiply by.
Returns
Scale times this.
1795  {
1796  return v * scale;
1797  }
std::ostream & Cosmos::Math::Vectors::operator<< ( std::ostream &  out,
const Vector v 
)
1984  {
1985  out << v.x << ",";
1986  out << v.y << ",";
1987  out << v.z;
1988 
1989  return out;
1990  }
double y
Definition: vector.h:713
double z
Definition: vector.h:714
double x
Definition: vector.h:712
Vector Cosmos::Math::Vectors::eye ( double  scale)
2069  {
2070  Vector val = Vector(1., 1., 1.);
2071  val *= scale;
2072  return val;
2073  }
Vector Class.
Definition: vector.h:672
Vector Cosmos::Math::Vectors::unitxV ( double  scale)
2076  {
2077  Vector val = Vector(1.);
2078  val *= scale;
2079  return val;
2080  }
Vector Class.
Definition: vector.h:672
Vector Cosmos::Math::Vectors::unityV ( double  scale)
2083  {
2084  Vector val = Vector(0., 1.);
2085  val *= scale;
2086  return val;
2087  }
Vector Class.
Definition: vector.h:672
Vector Cosmos::Math::Vectors::unitzV ( double  scale)
2090  {
2091  Vector val = Vector(0., 0., 1.);
2092  val *= scale;
2093  return val;
2094  }
Vector Class.
Definition: vector.h:672