逻辑问题:给定拐角,找到四边形的中心? [英] Logical question: Given corners, find Center of Quadrilateral?

查看:88
本文介绍了逻辑问题:给定拐角,找到四边形的中心?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

给定四边形所有角的坐标,如何找到其中心的坐标?

Given the cordinates of all corners of a quadrilateral, how can the cordinates of its center be found?

谢谢.

推荐答案

来源= x = 0,y = 0

Origin = x=0,y=0

a(0,0)b(10,0)

a(0,0) b(10,0)

c(0,5)d(10,5)

c(0,5) d(10,5)

a+(b-a/2)=5
a+(c-a/2)=2.5

中心坐标= 5,2.5

centre co-ordinate = 5,2.5

dx-ax/2=5 dy-ay/2=2.5

使用这些公式,边长不平的中心都可以计算出来.

with those formulas it wouldn't matter if the sides were uneven the centre can always be calculated.

问候 雷

这篇关于逻辑问题:给定拐角,找到四边形的中心?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆