Skip to content

Commit

Permalink
Add Vector4d.set(double, double, double)
Browse files Browse the repository at this point in the history
  • Loading branch information
httpdigest committed Jan 25, 2020
1 parent c44349f commit 3cc9787
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/org/joml/Vector4d.java
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,24 @@ public Vector4d set(double x, double y, double z, double w) {
return this;
}

/**
* Set the x, y, z components to the supplied values.
*
* @param x
* the x component
* @param y
* the y component
* @param z
* the z component
* @return this
*/
public Vector4d set(double x, double y, double z) {
this.x = x;
this.y = y;
this.z = z;
return this;
}

/**
* Set the four components of this vector to the first four elements of the given array.
*
Expand Down

0 comments on commit 3cc9787

Please sign in to comment.