geforkt von Mirrors/FastAsyncWorldEdit
Added Vector.dot(Vector).
Dieser Commit ist enthalten in:
Ursprung
274ecaadf2
Commit
a5a761a126
@ -612,6 +612,16 @@ public class Vector {
|
|||||||
return new BlockVector(this);
|
return new BlockVector(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the dot product of this and another vector.
|
||||||
|
*
|
||||||
|
* @param other
|
||||||
|
* @return the dot product of this and the other vector
|
||||||
|
*/
|
||||||
|
public double dot(Vector other) {
|
||||||
|
return x * other.x + y * other.y + z * other.z;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the minimum components of two vectors.
|
* Gets the minimum components of two vectors.
|
||||||
*
|
*
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren