Detecting Rotated Objects as Gaussian Distributions and Its 3-D Generalization