Advertisement
Guest User

Untitled

a guest
May 28th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. public List<Ponto> Ajuste()
  2. {
  3. float m = CoeficienteM();
  4. float b = CoeficienteB();
  5. List<Ponto> pontosajuste = new List<Ponto>();
  6. foreach (Ponto p in listapontos)
  7. {
  8. float novo_s = m * p.T + b;
  9. Ponto novo_p = new Ponto(p.T, novo_s);
  10. pontosajuste.Add(novo_p);
  11. }
  12. return pontosajuste;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement