//! @brief Returns the local coordinates del point a partir of the globales. XC::Vector XC::CrdTransf3d::getPointLocalCoordFromGlobal(const Vector &xg) const { Ref3d3d ref= getLocalReference(); Pos3d pl= ref.GetPosLocal(Pos3d(xg[0],xg[1],xg[2])); Vector retval(3); retval[0]= pl.x(); retval[1]= pl.y(); retval[2]= pl.z(); return retval; }
inline Pos3d operator+(Pos3d const & l, Pos3d const & r) { return Pos3d( l.x + r.x, l.y + r.y, l.z + r.z ); }
// * scalar inline Pos3d operator*(Pos3d const & l, double scalar) { return Pos3d( l.x * scalar, l.y * scalar, l.z * scalar ); }
inline Pos3d operator-(Pos3d const & l, Pos3d const & r) { return Pos3d( l.x - r.x, l.y - r.y, l.z - r.z ); }