Skip to content

Commit

Permalink
Added Velocity2D.java and Velocity3D.java as wrapper classes for Vect…
Browse files Browse the repository at this point in the history
…or2 and Vector3 from LibGDX
  • Loading branch information
KleeSup committed Jan 30, 2023
1 parent dc82b0a commit 4c8aced
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package de.kleesup.libraries.gamebase.shared.math;

import com.badlogic.gdx.math.Vector2;

/**
* A wrapper class of {@link Vector2} from LibGDX.
* <br>Created on 30.01.2023</br>
* @author KleeSup
* @version 1.0
* @since 1.1.3
*/
public class Velocity2D extends Vector2 {

public Velocity2D() {
}

public Velocity2D(float x, float y) {
super(x, y);
}

public Velocity2D(Vector2 v) {
super(v);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package de.kleesup.libraries.gamebase.shared.math;

import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.math.Vector3;

/**
* A wrapper class of {@link Vector3} from LibGDX.
* <br>Created on 30.01.2023</br>
* @author KleeSup
* @version 1.0
* @since 1.1.3
*/
public class Velocity3D extends Vector3 {

public Velocity3D() {
}

public Velocity3D(float x, float y, float z) {
super(x, y, z);
}

public Velocity3D(Vector3 vector) {
super(vector);
}

public Velocity3D(float[] values) {
super(values);
}

public Velocity3D(Vector2 vector, float z) {
super(vector, z);
}
}

0 comments on commit 4c8aced

Please sign in to comment.