/// <summary> /// Returns a vector composed of the <see cref="Mathd.PosMod(double, double)"/> of this vector's components and `modv`'s components. /// </summary> /// <param name="modv">A vector representing the divisors of the operation.</param> /// <returns>A vector with each component <see cref="Mathd.PosMod(double, double)"/> by `modv`'s components.</returns> public Vector2d PosMod(Vector2d modv) { Vector2d v; v.x = Mathd.PosMod(x, modv.x); v.y = Mathd.PosMod(y, modv.y); return(v); }
/// <summary> /// Returns a vector composed of the <see cref="Mathd.PosMod(double, double)"/> of this vector's components and `mod`. /// </summary> /// <param name="mod">A value representing the divisor of the operation.</param> /// <returns>A vector with each component <see cref="Mathd.PosMod(double, double)"/> by `mod`.</returns> public Vector2d PosMod(double mod) { Vector2d v; v.x = Mathd.PosMod(x, mod); v.y = Mathd.PosMod(y, mod); return(v); }
public Vector2d PosMod(Vector2d modv) { Vector2d v = this; v.x = Mathd.PosMod(v.x, modv.x); v.y = Mathd.PosMod(v.y, modv.y); return(v); }
public Vector2d PosMod(double mod) { Vector2d v = this; v.x = Mathd.PosMod(v.x, mod); v.y = Mathd.PosMod(v.y, mod); return(v); }
/// <summary> /// Returns a vector composed of the <see cref="Mathd.PosMod(double, double)"/> of this vector's components and `modv`'s components. /// </summary> /// <param name="modv">A vector representing the divisors of the operation.</param> /// <returns>A vector with each component <see cref="Mathd.PosMod(double, double)"/> by `modv`'s components.</returns> public Vector3d PosMod(Vector3d modv) { Vector3d v; v.x = Mathd.PosMod(x, modv.x); v.y = Mathd.PosMod(y, modv.y); v.z = Mathd.PosMod(z, modv.z); return(v); }
public Vector4d PosMod(Vector4d modv) { Vector4d v = this; v.x = Mathd.PosMod(v.x, modv.x); v.y = Mathd.PosMod(v.y, modv.y); v.z = Mathd.PosMod(v.z, modv.z); v.w = Mathd.PosMod(v.w, modv.w); return(v); }
public Vector4d PosMod(double mod) { Vector4d v = this; v.x = Mathd.PosMod(v.x, mod); v.y = Mathd.PosMod(v.y, mod); v.z = Mathd.PosMod(v.z, mod); v.w = Mathd.PosMod(v.w, mod); return(v); }