def __cross_product__(self, other):
     """
 Defines the cross product in 3 dimensions.
 """
     if isinstance(other, CoordinateVector):
         if len(other) != 3:
             raise CoordinateException(
                 "Error: Attempting to do the cross product on a vector that is not 3 dimensions."
             )
         values = {}
         values["x"] = self.y * other.z - self.z * other.y
         values["y"] = self.z * other.x - self.x * other.z
         values["z"] = self.x * other.y - self.y * other.x
         return CoordinateVector(self.order, values)
     raise CoordinateException(
         "Using the cross product for an unknown class.")