将所有学科的分数相加,然后将每个学科的分数除以总分数,得到每个学科的系数。然后将每个学科的分数乘以它们各自的系数并相加,得到您的中心点。
例如(非代码):
subject1: 50%
subject2: 50%
subject3: 100%
total: 200
subject1 co-eff: 50 / 200 = 0.25
subject2 co-eff: 50 / 200 = 0.25
subject3 co-eff: 100 / 200 = 0.5
centralpoint.x = (point1.x * 0.25) + (point2.x * 0.25) + (point3.x * 0.5)
centralpoint.y = (point1.y * 0.25) + (point2.y * 0.25) + (point3.y * 0.5)