Mathematical Formulation and Numerical Implementation of a Finite Element with Anisotropic Geometry