Add getters to Vec*
The question now is... why did they not have these methods beforehand?
This commit is contained in:
parent
9533b3e086
commit
1c658a8b94
4 changed files with 68 additions and 0 deletions
|
@ -20,6 +20,7 @@
|
|||
package de.staropensource.sosengine.base.classes;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* Represents a 2D float Vector.
|
||||
|
@ -28,6 +29,7 @@ import lombok.Getter;
|
|||
*/
|
||||
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
|
||||
@Getter
|
||||
@Setter
|
||||
public class Vec2 {
|
||||
/**
|
||||
* The X axis value.
|
||||
|
@ -39,6 +41,12 @@ public class Vec2 {
|
|||
*
|
||||
* @return the X axis value
|
||||
* @since 1-alpha0
|
||||
*
|
||||
* -- SETTER --
|
||||
* Sets the X axis value.
|
||||
*
|
||||
* @param x the X axis value
|
||||
* @since 1-alpha0
|
||||
*/
|
||||
private float x;
|
||||
|
||||
|
@ -52,6 +60,12 @@ public class Vec2 {
|
|||
*
|
||||
* @return the Y axis value
|
||||
* @since 1-alpha0
|
||||
*
|
||||
* -- SETTER --
|
||||
* Sets the Y axis value.
|
||||
*
|
||||
* @param y the Y axis value
|
||||
* @since 1-alpha0
|
||||
*/
|
||||
private float y;
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
package de.staropensource.sosengine.base.classes;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* Represents a 2D integer Vector.
|
||||
|
@ -28,6 +29,7 @@ import lombok.Getter;
|
|||
*/
|
||||
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
|
||||
@Getter
|
||||
@Setter
|
||||
public class Vec2i {
|
||||
/**
|
||||
* The X axis value.
|
||||
|
@ -39,6 +41,12 @@ public class Vec2i {
|
|||
*
|
||||
* @return the X axis value
|
||||
* @since 1-alpha0
|
||||
*
|
||||
* -- SETTER --
|
||||
* Sets the X axis value.
|
||||
*
|
||||
* @param x the X axis value
|
||||
* @since 1-alpha0
|
||||
*/
|
||||
private int x;
|
||||
|
||||
|
@ -52,6 +60,12 @@ public class Vec2i {
|
|||
*
|
||||
* @return the Y axis value
|
||||
* @since 1-alpha0
|
||||
*
|
||||
* -- SETTER --
|
||||
* Sets the Y axis value.
|
||||
*
|
||||
* @param y the Y axis value
|
||||
* @since 1-alpha0
|
||||
*/
|
||||
private int y;
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
package de.staropensource.sosengine.base.classes;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* Represents a 3D float Vector.
|
||||
|
@ -28,6 +29,7 @@ import lombok.Getter;
|
|||
*/
|
||||
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
|
||||
@Getter
|
||||
@Setter
|
||||
public class Vec3 {
|
||||
/**
|
||||
* The X axis value.
|
||||
|
@ -39,6 +41,12 @@ public class Vec3 {
|
|||
*
|
||||
* @return the X axis value
|
||||
* @since 1-alpha0
|
||||
*
|
||||
* -- SETTER --
|
||||
* Sets the X axis value.
|
||||
*
|
||||
* @param x the X axis value
|
||||
* @since 1-alpha0
|
||||
*/
|
||||
private float x;
|
||||
|
||||
|
@ -52,6 +60,12 @@ public class Vec3 {
|
|||
*
|
||||
* @return the Y axis value
|
||||
* @since 1-alpha0
|
||||
*
|
||||
* -- SETTER --
|
||||
* Sets the Y axis value.
|
||||
*
|
||||
* @param y the Y axis value
|
||||
* @since 1-alpha0
|
||||
*/
|
||||
private float y;
|
||||
|
||||
|
@ -65,6 +79,12 @@ public class Vec3 {
|
|||
*
|
||||
* @return the Z axis value
|
||||
* @since 1-alpha0
|
||||
*
|
||||
* -- SETTER --
|
||||
* Sets the Z axis value.
|
||||
*
|
||||
* @param z the Z axis value
|
||||
* @since 1-alpha0
|
||||
*/
|
||||
private float z;
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
package de.staropensource.sosengine.base.classes;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* Represents a 3D integer Vector.
|
||||
|
@ -28,6 +29,7 @@ import lombok.Getter;
|
|||
*/
|
||||
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
|
||||
@Getter
|
||||
@Setter
|
||||
public class Vec3i {
|
||||
/**
|
||||
* The X axis value.
|
||||
|
@ -39,6 +41,12 @@ public class Vec3i {
|
|||
*
|
||||
* @return the X axis value
|
||||
* @since 1-alpha0
|
||||
*
|
||||
* -- SETTER --
|
||||
* Sets the X axis value.
|
||||
*
|
||||
* @param x the X axis value
|
||||
* @since 1-alpha0
|
||||
*/
|
||||
private int x;
|
||||
|
||||
|
@ -52,6 +60,12 @@ public class Vec3i {
|
|||
*
|
||||
* @return the Y axis value
|
||||
* @since 1-alpha0
|
||||
*
|
||||
* -- SETTER --
|
||||
* Sets the Y axis value.
|
||||
*
|
||||
* @param y the Y axis value
|
||||
* @since 1-alpha0
|
||||
*/
|
||||
private int y;
|
||||
|
||||
|
@ -65,6 +79,12 @@ public class Vec3i {
|
|||
*
|
||||
* @return the Z axis value
|
||||
* @since 1-alpha0
|
||||
*
|
||||
* -- SETTER --
|
||||
* Sets the Z axis value.
|
||||
*
|
||||
* @param z the Z axis value
|
||||
* @since 1-alpha0
|
||||
*/
|
||||
private int z;
|
||||
|
||||
|
|
Loading…
Reference in a new issue