Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. package com.tasks.Task3;
  2.  
  3. public class HorizontalParabola {
  4. public double x0;
  5. public double y0;
  6. public double a;
  7.  
  8. public HorizontalParabola(double x0, double y0, double a) {
  9. this.x0 = x0;
  10. this.y0 = y0;
  11. this.a = a;
  12. }
  13.  
  14. public boolean isPointRightOfParabola(double x, double y) {
  15. return x >= a * Math.pow(y - y0, 2) + x0;
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement