CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 Windows编程 其他小程序

文件名称:triangle-program

介绍说明--下载内容来自于网络,使用问题请自行百度

题目要求:首先由用户输入六个值,以作三角形的三个顶点坐标,构成一个三角形;然后由用户输入一个点坐标,由程序来判断该点是否在该三角形内,并输出结果,至此,程序运行结束!



算法思想:

1:判断用户输入是否为三角形是根据三角形三边关系(两边之和大于第三边,两边之差小于第三边)来判断。

2:判断点是否在三角形内:将所要判断的点的坐标和三角形一顶点坐标带入该顶点所对应的那条边所在的直线方程中,并将两结果相乘,循环判断三次(每次所选的三角形顶点坐标需不同),得到的三个结果均大于0,则说明:点在三角形中,否则,点不在三角形中。-The subject of the request: the first six values ​ ​ input by the user, in order for the three vertices of the triangle coordinates, to form a triangle coordinates of a point is then entered by the user, by the procedure to determine whether the point within the triangle, and outputs the result, so far, the end of the program run! Algorithm thinking: 1: judgment entered by the user whether the triangle is a triangle triangular relationship (on both sides and is greater than the third side, on both sides of the difference is less than the third side) to determine. 2: determine whether or not the point within the triangle: To determine the coordinates of the point and the triangle vertex coordinates into the linear equation where the vertex corresponding to that edge, and the two results are multiplied cycle to judge three times (each time the selected triangle vertex coordinates need to be different), three results obtained are greater than 0, then: the point in a triangle, o
(系统自动生成,下载前可以参看下载内容)

下载文件列表

triangle program/
triangle program/2/
triangle program/2/2/
triangle program/2/2.sln
triangle program/2/2.suo
triangle program/2/2/2.csproj
triangle program/2/2/bin/
triangle program/2/2/bin/Debug/
triangle program/2/2/bin/Debug/2.exe
triangle program/2/2/bin/Debug/2.pdb
triangle program/2/2/bin/Debug/2.vshost.exe
triangle program/2/2/obj/
triangle program/2/2/obj/2.csproj.FileList.txt
triangle program/2/2/obj/Debug/
triangle program/2/2/obj/Debug/2.exe
triangle program/2/2/obj/Debug/2.pdb
triangle program/2/2/obj/Debug/TempPE/
triangle program/2/2/Program.cs
triangle program/2/2/Properties/
triangle program/2/2/Properties/AssemblyInfo.cs
triangle program/程序说明.txt

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com