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

setToTranslation() public method

public setToTranslation ( Vector2d vec ) : Matrix2d
vec Vector2d
return Matrix2d
  public Matrix2d setToTranslation(Vector2d vec) {
    Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToTranslation(swigCPtr, Vector2d.getCPtr(vec)), false);
    if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
    return ret;
  }