Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Refactored to fix bug caused by selfAssignment of variables in Vector…
…Crossproduct class
  • Loading branch information
CodaBlurd committed May 30, 2024
commit 8144ddc29d98f9563c4fcde174b7187783e5b155
14 changes: 7 additions & 7 deletions src/main/java/com/thealgorithms/maths/VectorCrossProduct.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ public class VectorCrossProduct {
/**
* constructor, initialises Vector with given Direction Ratios
*
* @param x set to x
* @param y set to y
* @param z set to z
* @param vectorX set to x
* @param vectorY set to y
* @param vectorZ set to z
*/
VectorCrossProduct(int x, int y, int z) {
x = x;
y = y;
z = z;
VectorCrossProduct(int vectorX, int vectorY, int vectorZ) {
x = vectorX;
y = vectorY;
z = vectorZ;
}

/**
Expand Down