コード例 #1
0
 /// <summary>
 ///     Checks if the data value is not equal to the given value.
 /// </summary>
 /// <param name="value"></param>
 /// <returns></returns>
 public bool NotEqual(Vector2Data value)
 {
     return(!Value.Equals(value.Value));
 }
コード例 #2
0
 /// <summary>
 ///     Divides the data value by an amount.
 /// </summary>
 /// <param name="value"></param>
 public void DivideBy(Vector2Data value)
 {
     Value /= value.Value;
 }
コード例 #3
0
 /// <summary>
 ///     Multiplies an amount to the data value.
 /// </summary>
 /// <param name="value"></param>
 public void MultiplyWith(Vector2Data value)
 {
     Value *= value.Value;
 }
コード例 #4
0
 /// <summary>
 ///     Subtracts an amount from the data value.
 /// </summary>
 /// <param name="value"></param>
 public void SubtractFrom(Vector2Data value)
 {
     Value -= value.Value;
 }
コード例 #5
0
 /// <summary>
 ///     Adds an amount to the data value.
 /// </summary>
 /// <param name="value"></param>
 public void AddTo(Vector2Data value)
 {
     Value += value.Value;
 }
コード例 #6
0
 /// <summary>
 ///     Attempts to set the value of this data to the supplied value.
 /// </summary>
 /// <param name="value"></param>
 public void SetValue(Vector2Data value)
 {
     Value = value.Value;
 }