This repository has been archived by the owner on Nov 22, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# libvec | ||
My simple vector math library | ||
|
||
## Publishing | ||
This library is auto-published by [Jitpack](https://jitpack.io/#ewpratten/libvec) | ||
## Publishing & installation | ||
This library is auto-published by [Jitpack](https://jitpack.io/#ewpratten/libvec). Check the link for installation instructions | ||
|
||
## API docs | ||
The API docs can be found [HERE](https://ewpratten.github.io/libvec/) |
4 changes: 3 additions & 1 deletion
4
...ain/java/ca/retrylife/libvec/Colour3.java → ...ca/retrylife/libvec/adaptors/Colour3.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package ca.retrylife.libvec.adaptors; | ||
|
||
import ca.retrylife.libvec.Vector3; | ||
|
||
/** | ||
* A 2D floating point. Replacement for javax.vecmath.Point2f | ||
*/ | ||
public class Point2 extends Vector3 { | ||
|
||
/** | ||
* Create a 2D point represented as a 3D vector | ||
* | ||
* @param x X component | ||
* @param y Y component | ||
*/ | ||
public Point2(double x, double y) { | ||
super(x, y, 0); | ||
} | ||
} |