Skip to content

Commit

Permalink
address checkstyle issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannetty committed Feb 5, 2025
1 parent 7a4dd2c commit 270f7e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/arcade/core/util/Vector.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

/** A 3D vector. */
public class Vector {
/** The (x,y,z) values of the vector */
/** The (x,y,z) values of the vector. */
public final Double3D vector;

/**
Expand Down Expand Up @@ -48,7 +48,6 @@ public double getY() {
/**
* Gets the z component of the vector.
*
* @param vector the vector
* @return the z component
*/
public double getZ() {
Expand All @@ -58,6 +57,7 @@ public double getZ() {
/**
* Determines the magnitude of the provided vector.
*
* @param vector the vector
* @return the magnitude of the vector
*/
public static double getVectorMagnitude(Vector vector) {
Expand Down Expand Up @@ -148,7 +148,7 @@ public static Vector rotateVectorAroundAxis(Vector vector, Vector axis, double t
}

/**
* Determines if two vectors are equal
* Determines if two vectors are equal.
*
* @param obj the object to compare
* @return true if the vectors are equal, false otherwise
Expand Down
1 change: 0 additions & 1 deletion test/arcade/core/util/VectorTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ public void rotateVectorAroundAxis_called_vectorMagnitudePreserved() {
public void rotateVectorAroundAxis_zeroDegreeRotation_returnsSameVector() {
Vector normalVector = new Vector(1, 0, 0);
Vector zAxis = new Vector(0, 0, 1);
;
double thetaDegrees = 0.0;
Vector rotatedVector = Vector.rotateVectorAroundAxis(normalVector, zAxis, thetaDegrees);
assertEquals(normalVector, rotatedVector);
Expand Down

0 comments on commit 270f7e2

Please # to comment.