判断直线相交

来源:互联网 发布:windows loader 2.4 编辑:程序博客网 时间:2024/06/06 03:44
package 判断直线相交;public class Solution {    static double a = Math.pow(10, -6);    public boolean checkCrossLine(double s1, double s2, double y1, double y2) {        // write code here        return Math.abs(s1 - s2) > Math.pow(10, -6) || Math.abs(y1 - y2) < Math.pow(10, -6);    }    public static void main(String[] args) {    }}
0 0
原创粉丝点击