publicstaticvoidmain(String[]args){Vectorvector=newVector(1,1);System.out.println("原始向量:("+vector.getX()+", "+vector.getY()+")");vector.rotate();System.out.println("旋转后的向量:("+vector.getX()+", "+vector.getY()+")");} 1. 2. 3. 4. 5. 6. 7. 以上代码创建了一个初...