# Gimp.Vector2.cross_product

    @accepts(Gimp.Vector2, Gimp.Vector2)
    @returns(Gimp.Vector2)
    def cross_product(self, vector2):
        # Python wrapper for gimp_vector2_cross_product()

Compute the cross product of two vectors. The result is a Gimp.Vector2 which is orthogonal to both self and vector2. If self and vector2 are parallel, the result will be the nul vector.

Note that in 2D, this function is useful to test if two vectors are parallel or not, or to compute the area spawned by two vectors.

self

  a pointer to the first Gimp.Vector2.

vector2

  a pointer to the second Gimp.Vector2.

Returns