/// <summary> /// Multiplies component by component. /// </summary> /// <param name="thisVector">The this vector.</param> /// <param name="otherVector">The other vector.</param> public static Vector3 HadamardMod(this Vector3 thisVector, Vector3 otherVector) { return(new Vector3( MathsExtensions.FloorMod(thisVector.x, otherVector.x), MathsExtensions.FloorMod(thisVector.y, otherVector.y), MathsExtensions.FloorMod(thisVector.z, otherVector.z))); }
/// <summary> /// Multiplies component by component. /// </summary> /// <param name="thisVector">The this vector.</param> /// <param name="otherVector">The other vector.</param> public static Vector4 HadamardMod(this Vector4 thisVector, Vector4 otherVector) { return(new Vector4( MathsExtensions.FloorMod(thisVector.x, otherVector.x), MathsExtensions.FloorMod(thisVector.y, otherVector.y), MathsExtensions.FloorMod(thisVector.z, otherVector.z), MathsExtensions.FloorMod(thisVector.w, otherVector.w))); }
/// <summary> /// Multiplies component by component. /// </summary> /// <param name="thisVector">The this vector.</param> /// <param name="otherVector">The other vector.</param> public static Vector2 HadamardMod(this Vector2 thisVector, Vector2 otherVector) { return(new Vector2( MathsExtensions.FloorMod(thisVector.x, otherVector.x), MathsExtensions.FloorMod(thisVector.y, otherVector.y))); }