Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Classe_1.cpp
- Committer:
- softris
- Date:
- 2021-04-15
- Revision:
- 1:ea27eae94ab2
- Parent:
- 0:6e688c52e0cc
File content as of revision 1:ea27eae94ab2:
#include "Classe_1.h"
Classe_1::Classe_1 (void)
    {
    point.x = 0.0f ;
    point.y = 0.0f ;
    }
    
void Classe_1::fonction_1(void) 
    {
    point.x = 0.0f ;
    point.y = 0.0f ;
    }
    
float Classe_1::fonction_2(void) 
    {
    float   ret = sqrt( pow ( point.x , 2 )  + pow ( point.y , 2 ) )  ;
    return (ret);
    }
 
int Classe_1::fonction_3(Point *pP) 
    {
    point.x += pP->x ;
    point.y += pP->y ;
    return (1);
    }