Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.tasks.Task3;
- public class HorizontalParabola {
- public double x0;
- public double y0;
- public double a;
- public HorizontalParabola(double x0, double y0, double a) {
- this.x0 = x0;
- this.y0 = y0;
- this.a = a;
- }
- public boolean isPointRightOfParabola(double x, double y) {
- return x >= a * Math.pow(y - y0, 2) + x0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement