def rotate3(rot, vector):
    """Return the rotation of 3-dimension ``vector`` by 3x3 (row major) matrix
	``rot``.

	"""
    return vector[0] * rot[0] + vector[1] * rot[1] + vector[2] * rot[2
        ], vector[0] * rot[3] + vector[1] * rot[4] + vector[2] * rot[5
        ], vector[0] * rot[6] + vector[1] * rot[7] + vector[2] * rot[8]
