This is a simple case. If the hydrogen atoms are on the same side of the double bond then you have the cis isomer. If they are on the opposite side then you have trans.
In more complex cases, say a tri or tetra substituted double bond then the Cahn-Ingold-Prelog rules apply.