mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
17 lines
265 B
Java
17 lines
265 B
Java
package com.hbm.calc;
|
|
|
|
public class EasyVector {
|
|
|
|
public double a;
|
|
public double b;
|
|
|
|
public EasyVector(double a, double b) {
|
|
this.a = a;
|
|
this.b = b;
|
|
}
|
|
|
|
public double getResult() {
|
|
return Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
|
|
}
|
|
}
|