//#include "Debug.h"
// This file is part of the Herezh++ application.
//
// The finite element software Herezh++ is dedicated to the field
// of mechanics for large transformations of solid structures.
// It is developed by Gérard Rio (APP: IDDN.FR.010.0106078.000.R.P.2006.035.20600)
// INSTITUT DE RECHERCHE DUPUY DE LÔME (IRDL) .
//
// Herezh++ is distributed under GPL 3 license ou ultérieure.
//
// Copyright (C) 1997-2021 Université Bretagne Sud (France)
// AUTHOR : Gérard Rio
// E-MAIL : gerardrio56@free.fr
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License,
// or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty
// of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see .
//
// For more information, please consult: .
#include "Plan.h"
#include "ConstMath.h"
#include "MathUtil.h"
#include "Util.h"
// CONSTRUCTEURS :
// par defaut
Plan::Plan () :
A(), N()
{};
// avec les datas
Plan::Plan ( const Coordonnee& B, const Coordonnee& vec) :
A(B), N(vec)
{
#ifdef MISE_AU_POINT
if (B.Dimension() != vec.Dimension())
{ cout << "\nErreur : les dimensions du point et du vecteur ne sont pas identique !";
cout <<"\ndim point = " <A = P.A; this->N = P.N;
return *this;
};
// METHODES PUBLIQUES :
// change le point de ref du plan
void Plan::Change_ptref( const Coordonnee& B)
{
#ifdef MISE_AU_POINT
if (B.Dimension() != N.Dimension())
{ cout << "\nErreur : les dimensions du point et du vecteur ne sont pas identique !";
cout <<"\ndim point = " <> (istream & entree, Plan & pl)\n";
Sortie(1);
};
#endif
// puis lecture des différents éléments
entree >> nom >> pl.A >> nom >> pl.N;
return entree;
};
// surcharge de l'operateur d'ecriture
ostream & operator << ( ostream & sort,const Plan & pl)
{ // tout d'abord un indicateur donnant le type
sort << " _plan_ " ;
// puis les différents éléments
sort << "\n A= " << pl.A << " U= " << pl.N << " ";
return sort;
};