#include<iostream>
#include "Recta.h"
using namespace std;
int main(){
Recta L1;
Recta* L2=new Recta;
//L1.define(4,6,1);
L2->define(-3,1,4);
cout<<"m1="<<L1.m()<<endl;
cout<< (L1.pertenece(-0.5,0.5)?"Si ":"No ")<<"pertenece."<<endl;
cout<< (L1.pertenece(0.5,-0.5)?"Si ":"No ")<<"pertenece."<<endl;
cout<< (L1.esParalelaA(*L2)?"Si ":"No ")<<"es paralela."<<endl;
cin.get();
}
No hay comentarios:
Publicar un comentario