Skip to content
This repository has been archived by the owner on Nov 22, 2020. It is now read-only.

Commit

Permalink
Added Point2
Browse files Browse the repository at this point in the history
  • Loading branch information
ewpratten committed Dec 28, 2019
1 parent cd46cf6 commit 66fd38d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
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/)
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
package ca.retrylife.libvec;
package ca.retrylife.libvec.adaptors;

import ca.retrylife.libvec.Vector3;

/**
* A replacement for javax.vecmath.Color3f (incomplete)
Expand Down
19 changes: 19 additions & 0 deletions src/main/java/ca/retrylife/libvec/adaptors/Point2.java
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);
}
}

0 comments on commit 66fd38d

Please sign in to comment.