POJ-1269—Intersecting Lines(简单计算几何)

这是一篇关于计算几何的编程问题,要求编写程序判断输入的两组点定义的两条直线是否相交,如何相交,并给出相交点坐标。输入包含多组数据,每组数据由四个点的坐标组成,输出包括线条关系和可能的交点坐标。问题中涵盖了直线平行、重合和相交三种情况的判断,并提供了示例输入和输出。
摘要由CSDN通过智能技术生成

                                         Intersecting Lines

Time Limit: 1000MS   Memory Limit: 10000K
Total Submissions: 19286   Accepted: 8196

Description

We all know that a pair of distinct points on a plane defines a line and that a pair of lines on a plane will intersect in one of three ways: 1) no intersection because they are parallel, 2) intersect in a line because they are on top of one another (i.e. they are the same line), 3) intersect in a point. In this problem you will use your algebraic knowledge to create a program that determines how and where two lines intersect. 
Your program will repeatedly read in four points that define two lines in the x-y plane and determine how and where the lines intersect. All numbers required by this problem will be reasonable, say betwee

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值