-
Notifications
You must be signed in to change notification settings - Fork 0
/
CurvePoint.java
43 lines (38 loc) · 1.34 KB
/
CurvePoint.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package org.firstinspires.ftc.teamcode.purePersuit;
public class CurvePoint {
public double x;
public double y;
public double moveSpeed;
public double turnSpeed;
public double followDistance;
public double pointLenght;
public double slowDownTurnRdians;
public double slowedDownTurnAmount;
public CurvePoint( double x, double y, double moveSpeed, double turnSpeed,
double followDistance, double slowDownTurnRdians , double slowedDownTurnAmount){
this.x = x;
this.y = y;
this.moveSpeed = moveSpeed;
this.turnSpeed = turnSpeed;
this.followDistance = followDistance;
this.slowDownTurnRdians = slowDownTurnRdians;
this.slowedDownTurnAmount = slowedDownTurnAmount;
}
public CurvePoint( CurvePoint thispoint){
x = thispoint.x;
y = thispoint.y;
moveSpeed = thispoint.moveSpeed;
turnSpeed = thispoint.turnSpeed;
followDistance = thispoint.followDistance;
pointLenght = thispoint.pointLenght;
slowDownTurnRdians = thispoint.slowDownTurnRdians;
slowedDownTurnAmount = thispoint.slowedDownTurnAmount;
}
public point toPoint(){
return new point(x,y);
}
public void setPoint(point point){
x = point.x;
y = point.y;
}
}