Exploit database

GH-5fbbd02ef8781becfaa9bbb24c21a7fd

25wangj/ftccenterstage16460

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2019-11358

1,181 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files21

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 bytes
package 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));
    }
}