touchvg.core.Matrix2d.translation C# (CSharp) Method

translation() public static method

public static translation ( Vector2d vec ) : Matrix2d
vec Vector2d
return Matrix2d
  public static Matrix2d translation(Vector2d vec) {
    Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_translation(Vector2d.getCPtr(vec)), true);
    if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }