Exemplo n.º 1
0
 public static Vector3 HadamardMod(this Vector3 thisVector, Vector3 otherVector)
 {
     return(new Vector3(
                GLMathf.FloorMod(thisVector.x, otherVector.x),
                GLMathf.FloorMod(thisVector.y, otherVector.y),
                GLMathf.FloorMod(thisVector.z, otherVector.z)));
 }
Exemplo n.º 2
0
 public static Vector4 HadamardMod(this Vector4 thisVector, Vector4 otherVector)
 {
     return(new Vector4(
                GLMathf.FloorMod(thisVector.x, otherVector.x),
                GLMathf.FloorMod(thisVector.y, otherVector.y),
                GLMathf.FloorMod(thisVector.z, otherVector.z),
                GLMathf.FloorMod(thisVector.w, otherVector.w)));
 }
Exemplo n.º 3
0
 public static Vector2 HadamardMod(this Vector2 thisVector, Vector2 otherVector)
 {
     return(new Vector2(
                GLMathf.FloorMod(thisVector.x, otherVector.x),
                GLMathf.FloorMod(thisVector.y, otherVector.y)));
 }