Exploit databaseDownload repository ZIP
GH-5fbbd02ef8781becfaa9bbb24c21a7fd
25wangj/ftccenterstage16460
Sources for CVE-2019-11358
1,181 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files21
25wangj/ftccenterstage16460Revision 4567bd0168c4
- ↑..Parent directory
- AbstractMecanumDrive.java
- AdaptiveQuadrature.java
- CubicSpline.java
- CubicSplineInterpolator.java
- Drivetrain.java
- Encoder.java
- LinePath.java
- Localizer.java
- Path.java
- PathState.java
- PathTrajectory.java
- Pose.java
- SplinePath.java
- ThreeWheelKalmanLocalizer.java
- ThreeWheelLocalizer.java
- TrajCommandBuilder.java
- Trajectory.java
- TrajectoryState.java
- TurnTrajectory.java
- Vec.java
- WaitTrajectory.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/movement/Vec.java
Suggested starting fileJava · 918 bytespackage org.firstinspires.ftc.teamcode.movement;
import static java.lang.Math.*;
public class Vec {
public final double x;
public final double y;
public Vec(double x, double y) {
this.x = x;
this.y = y;
}
public double norm() {
return Math.sqrt(x * x + y * y);
}
public Vec normalize() {
if (x == 0 && y == 0) {
return new Vec(0, 0);
}
return mult(1 / norm());
}
public Vec mult(double a) {
return new Vec(a * x, a * y);
}
public Vec combo(double a, Vec other, double b) {
return new Vec(a * x + b * other.x, a * y + b * other.y);
}
public Vec rotate(double a) {
return new Vec(x * cos(a) - y * sin(a), x * sin(a) + y * cos(a));
}
public double angle() {
return atan2(y, x);
}
public static Vec dir(double a) {
return new Vec(cos(a), sin(a));
}
}