コード例 #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)));
 }
コード例 #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)));
 }
コード例 #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)));
 }