Add getters to Vec*

The question now is... why did they not have these methods beforehand?
This commit is contained in:
JeremyStar™ 2024-06-11 22:29:20 +02:00
parent 9533b3e086
commit 1c658a8b94
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
4 changed files with 68 additions and 0 deletions

View file

@ -20,6 +20,7 @@
package de.staropensource.sosengine.base.classes; package de.staropensource.sosengine.base.classes;
import lombok.Getter; import lombok.Getter;
import lombok.Setter;
/** /**
* Represents a 2D float Vector. * Represents a 2D float Vector.
@ -28,6 +29,7 @@ import lombok.Getter;
*/ */
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" }) @SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
@Getter @Getter
@Setter
public class Vec2 { public class Vec2 {
/** /**
* The X axis value. * The X axis value.
@ -39,6 +41,12 @@ public class Vec2 {
* *
* @return the X axis value * @return the X axis value
* @since 1-alpha0 * @since 1-alpha0
*
* -- SETTER --
* Sets the X axis value.
*
* @param x the X axis value
* @since 1-alpha0
*/ */
private float x; private float x;
@ -52,6 +60,12 @@ public class Vec2 {
* *
* @return the Y axis value * @return the Y axis value
* @since 1-alpha0 * @since 1-alpha0
*
* -- SETTER --
* Sets the Y axis value.
*
* @param y the Y axis value
* @since 1-alpha0
*/ */
private float y; private float y;

View file

@ -20,6 +20,7 @@
package de.staropensource.sosengine.base.classes; package de.staropensource.sosengine.base.classes;
import lombok.Getter; import lombok.Getter;
import lombok.Setter;
/** /**
* Represents a 2D integer Vector. * Represents a 2D integer Vector.
@ -28,6 +29,7 @@ import lombok.Getter;
*/ */
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" }) @SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
@Getter @Getter
@Setter
public class Vec2i { public class Vec2i {
/** /**
* The X axis value. * The X axis value.
@ -39,6 +41,12 @@ public class Vec2i {
* *
* @return the X axis value * @return the X axis value
* @since 1-alpha0 * @since 1-alpha0
*
* -- SETTER --
* Sets the X axis value.
*
* @param x the X axis value
* @since 1-alpha0
*/ */
private int x; private int x;
@ -52,6 +60,12 @@ public class Vec2i {
* *
* @return the Y axis value * @return the Y axis value
* @since 1-alpha0 * @since 1-alpha0
*
* -- SETTER --
* Sets the Y axis value.
*
* @param y the Y axis value
* @since 1-alpha0
*/ */
private int y; private int y;

View file

@ -20,6 +20,7 @@
package de.staropensource.sosengine.base.classes; package de.staropensource.sosengine.base.classes;
import lombok.Getter; import lombok.Getter;
import lombok.Setter;
/** /**
* Represents a 3D float Vector. * Represents a 3D float Vector.
@ -28,6 +29,7 @@ import lombok.Getter;
*/ */
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" }) @SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
@Getter @Getter
@Setter
public class Vec3 { public class Vec3 {
/** /**
* The X axis value. * The X axis value.
@ -39,6 +41,12 @@ public class Vec3 {
* *
* @return the X axis value * @return the X axis value
* @since 1-alpha0 * @since 1-alpha0
*
* -- SETTER --
* Sets the X axis value.
*
* @param x the X axis value
* @since 1-alpha0
*/ */
private float x; private float x;
@ -52,6 +60,12 @@ public class Vec3 {
* *
* @return the Y axis value * @return the Y axis value
* @since 1-alpha0 * @since 1-alpha0
*
* -- SETTER --
* Sets the Y axis value.
*
* @param y the Y axis value
* @since 1-alpha0
*/ */
private float y; private float y;
@ -65,6 +79,12 @@ public class Vec3 {
* *
* @return the Z axis value * @return the Z axis value
* @since 1-alpha0 * @since 1-alpha0
*
* -- SETTER --
* Sets the Z axis value.
*
* @param z the Z axis value
* @since 1-alpha0
*/ */
private float z; private float z;

View file

@ -20,6 +20,7 @@
package de.staropensource.sosengine.base.classes; package de.staropensource.sosengine.base.classes;
import lombok.Getter; import lombok.Getter;
import lombok.Setter;
/** /**
* Represents a 3D integer Vector. * Represents a 3D integer Vector.
@ -28,6 +29,7 @@ import lombok.Getter;
*/ */
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" }) @SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
@Getter @Getter
@Setter
public class Vec3i { public class Vec3i {
/** /**
* The X axis value. * The X axis value.
@ -39,6 +41,12 @@ public class Vec3i {
* *
* @return the X axis value * @return the X axis value
* @since 1-alpha0 * @since 1-alpha0
*
* -- SETTER --
* Sets the X axis value.
*
* @param x the X axis value
* @since 1-alpha0
*/ */
private int x; private int x;
@ -52,6 +60,12 @@ public class Vec3i {
* *
* @return the Y axis value * @return the Y axis value
* @since 1-alpha0 * @since 1-alpha0
*
* -- SETTER --
* Sets the Y axis value.
*
* @param y the Y axis value
* @since 1-alpha0
*/ */
private int y; private int y;
@ -65,6 +79,12 @@ public class Vec3i {
* *
* @return the Z axis value * @return the Z axis value
* @since 1-alpha0 * @since 1-alpha0
*
* -- SETTER --
* Sets the Z axis value.
*
* @param z the Z axis value
* @since 1-alpha0
*/ */
private int z; private int z;