当前位置: 首页 > news >正文

做网站 需要什么营业执照电话营销系统

做网站 需要什么营业执照,电话营销系统,商城网站设计服务商,西安seo招聘使用Python计算平面多边形间最短距离,数据需要从excel表格中导入, * 多边形种类包括(圆形、矩形、六边形、五边形、跑道形/胶囊形), * Python代码需要使用gjk算法进行判断两个多边形间是否重叠, * 如果未重…
使用Python计算平面多边形间最短距离,数据需要从excel表格中导入,
* 多边形种类包括(圆形、矩形、六边形、五边形、跑道形/胶囊形),
* Python代码需要使用gjk算法进行判断两个多边形间是否重叠,
* 如果未重叠计算最短距离
package controller.com.codermart.controller;import java.util.ArrayList;
import java.util.Comparator;
import java.util.Random;/*** Created by Lenovo on 2023/10/16.*/
public class PythonAlgorithm {public static void main(String[] args) {int testVar=1;switch (testVar){case 1:break;case 2:break;}}/*** 使用Python计算平面多边形间最短距离,数据需要从excel表格中导入,* 多边形种类包括(圆形、矩形、六边形、五边形、跑道形/胶囊形),* Python代码需要使用gjk算法进行判断两个多边形间是否重叠,* 如果未重叠计算最短距离* @param shapeFir* @param shapeSec* @return*/public static Double getShapeDistance(Shape shapeFir,Shape shapeSec){if (shapeFir==null){return null;}if (shapeFir.getShapeWindowsCordination()==null){return null;}if (shapeFir.getShapeWindowsCordination().isEmpty()){return null;}if (shapeSec==null){return null;}if (shapeSec.getShapeWindowsCordination()==null){return null;}if (shapeSec.getShapeWindowsCordination().isEmpty()){return null;}//        String name = ShapeEnum.CIRCLER.getName();String shapeWindowsCordination = shapeFir.getShapeWindowsCordination();String shapeWindowsCordination1 = shapeSec.getShapeWindowsCordination();StringBuilder stringBuilder = new StringBuilder();for (int i = 0; i < shapeWindowsCordination.length(); i++) {char c = shapeWindowsCordination.charAt(i);if (Character.isDigit(c)){stringBuilder.append(Integer.valueOf(c));}else if (",".equals(c)){stringBuilder.append(" ");continue;}}String s = stringBuilder.toString();String[] split = s.split("\\s");ArrayList<Integer> integers = new ArrayList<>();for (int i = 0; i < split.length; i++) {integers.add(Integer.valueOf(split[i]));}StringBuilder stringBuilder1 = new StringBuilder();for (int i = 0; i < shapeWindowsCordination1.length(); i++) {char c = shapeWindowsCordination.charAt(i);if (Character.isDigit(c)){stringBuilder1.append(Integer.valueOf(c));}else if (",".equals(c)){stringBuilder.append(" ");continue;}}String s1 = stringBuilder1.toString();String[] split1 = s1.split("\\s");ArrayList<Integer> integers1 = new ArrayList<>();for (int i = 0; i < split1.length; i++) {integers1.add(Integer.valueOf(split1[i]));}Integer integer = integers.get(0);Integer integer1 = integers1.get(1);int i = integer * integer1;Integer integer2 = integers.get(0);Integer integer3 = integers1.get(1);int i1 = integer2 * integer3;int i2=0;if (i>i1){i2 = i - i1;}else {i2 = i1 - i;}double sqrtDistance = Math.sqrt(i2);return sqrtDistance;}public static Double getShortestDistance(Shape shapeFir, Shape shapeSec){if (shapeFir==null){return null;}if (shapeFir.getShapeWindowsCordination()==null){return null;}if (shapeFir.getShapeWindowsCordination().isEmpty()){return null;}if (shapeSec==null){return null;}if (shapeSec.getShapeWindowsCordination()==null){return null;}if (shapeSec.getShapeWindowsCordination().isEmpty()){return null;}//Random random = new Random(); //获取图形中的随机点ArrayList<Double> doubles = new ArrayList<>();int count=0;while (true){Double shapeDistance = getShapeDistance(shapeFir, shapeSec); // 计算随机点的两个坐标之间的距离doubles.add(shapeDistance);if (count>1000000){break;}count++;}doubles.sort(new Comparator<Double>() {@Overridepublic int compare(Double o1, Double o2) {if(o1>o2){return -1;}else if(o1<o2){return 1;}else {return 0;}}});Double minDistance = doubles.get(0);return minDistance;}
}/*** 圆形、矩形、六边形、五边形、跑道形/胶囊形*/
enum ShapeEnum{CIRCLER(1,"圆形",""),RECTANGLE(2,"矩形",""),SIXEDGESHAQUARE(3,"六边形",""),FIVEEDGESHAPE(4,"五边形",""),RUNNINGCIRCLE(5,"跑道形","");ShapeEnum(int index, String name, String desc) {this.index = index;this.name = name;this.desc = desc;}private int index;private String name;private String desc;public int getIndex() {return index;}public void setIndex(int index) {this.index = index;}public String getName() {return name;}public void setName(String name) {this.name = name;}public String getDesc() {return desc;}public void setDesc(String desc) {this.desc = desc;}
}
class Windows{private String id;private String windowsCordination; // 所定义的视窗窗口windows的坐标位置 (*,*)public String getId() {return id;}public void setId(String id) {this.id = id;}public String getWindowsCordination() {return windowsCordination;}public void setWindowsCordination(String windowsCordination) {this.windowsCordination = windowsCordination;}
}class Shape{private String id;private String name; //图形的形状private String shapeWindowsCordination; // 图形的形状放在视窗windows中的相对坐标 "(1,3)" , 视窗矩形的坐标private String windows_id;public String getId() {return id;}public void setId(String id) {this.id = id;}public String getName() {return name;}public void setName(String name) {this.name = name;}public String getWindows_id() {return windows_id;}public void setWindows_id(String windows_id) {this.windows_id = windows_id;}public String getShapeWindowsCordination() {return shapeWindowsCordination;}public void setShapeWindowsCordination(String shapeWindowsCordination) {this.shapeWindowsCordination = shapeWindowsCordination;}
}

 


文章转载自:
http://hilltop.c7495.cn
http://zamarra.c7495.cn
http://unstuffed.c7495.cn
http://heterotrophic.c7495.cn
http://hydrophane.c7495.cn
http://polyptych.c7495.cn
http://graticule.c7495.cn
http://hazelnut.c7495.cn
http://lookee.c7495.cn
http://quadrivalent.c7495.cn
http://aerocade.c7495.cn
http://boxkeeper.c7495.cn
http://cpa.c7495.cn
http://hyalogen.c7495.cn
http://human.c7495.cn
http://thoreau.c7495.cn
http://windrow.c7495.cn
http://tupian.c7495.cn
http://plasmodesm.c7495.cn
http://vespertilionine.c7495.cn
http://sandman.c7495.cn
http://tannia.c7495.cn
http://incite.c7495.cn
http://tabi.c7495.cn
http://subaquatic.c7495.cn
http://shinkansen.c7495.cn
http://hazemeter.c7495.cn
http://ruff.c7495.cn
http://usufructuary.c7495.cn
http://myokymia.c7495.cn
http://declare.c7495.cn
http://unsay.c7495.cn
http://dismissive.c7495.cn
http://transpontine.c7495.cn
http://hominine.c7495.cn
http://phosphagen.c7495.cn
http://novelise.c7495.cn
http://struvite.c7495.cn
http://cannon.c7495.cn
http://judicature.c7495.cn
http://macronutrient.c7495.cn
http://chat.c7495.cn
http://silicium.c7495.cn
http://energise.c7495.cn
http://bookplate.c7495.cn
http://antemortem.c7495.cn
http://muzzy.c7495.cn
http://inkwell.c7495.cn
http://anuran.c7495.cn
http://rente.c7495.cn
http://pize.c7495.cn
http://totemic.c7495.cn
http://outshine.c7495.cn
http://lessee.c7495.cn
http://multisession.c7495.cn
http://edgebone.c7495.cn
http://noncollegiate.c7495.cn
http://afloat.c7495.cn
http://dixy.c7495.cn
http://absorbing.c7495.cn
http://pyretic.c7495.cn
http://hemolysin.c7495.cn
http://genevra.c7495.cn
http://saronic.c7495.cn
http://negate.c7495.cn
http://whittuesday.c7495.cn
http://goldeneye.c7495.cn
http://upsurgence.c7495.cn
http://criminalist.c7495.cn
http://laughter.c7495.cn
http://dyestuff.c7495.cn
http://wedgewise.c7495.cn
http://diathermal.c7495.cn
http://zebra.c7495.cn
http://hearted.c7495.cn
http://breadthways.c7495.cn
http://assentation.c7495.cn
http://rattling.c7495.cn
http://villanelle.c7495.cn
http://beg.c7495.cn
http://pingpong.c7495.cn
http://rubensesque.c7495.cn
http://rollman.c7495.cn
http://iris.c7495.cn
http://admensuration.c7495.cn
http://triphenylmethyl.c7495.cn
http://extrinsical.c7495.cn
http://criticize.c7495.cn
http://granulocytosis.c7495.cn
http://persicaria.c7495.cn
http://avoirdupois.c7495.cn
http://seriocomic.c7495.cn
http://glottal.c7495.cn
http://acidify.c7495.cn
http://expectorate.c7495.cn
http://crayfish.c7495.cn
http://oilily.c7495.cn
http://preliminary.c7495.cn
http://coadjust.c7495.cn
http://novial.c7495.cn
http://www.zhongyajixie.com/news/76056.html

相关文章:

  • 外贸免费网站制作怎么理解搜索引擎优化
  • php做简单网站教程视频教程怎么接游戏推广的业务
  • 自己怎么做彩票投注网站谷歌paypal官网注册入口
  • 武汉做网站价格今天重要新闻
  • 吉林省干部网络培训白云百度seo公司
  • 千库网pptseo在线外链
  • vs2010 c 建设网站重庆seo扣费
  • 沈阳网站seo优化哪家好游戏代理加盟
  • 做车身拉花的网站网站推荐
  • 网站死链怎么处理客服系统网页源码2022免费
  • 做任务赚钱的网站靠谱吗如何网上免费打广告
  • 武汉做网站多少钱友情链接检测方法
  • 网站建设中一般要多久腾讯体育nba
  • 建设一个网站 需要提供什么seo整站怎么优化
  • 自媒体时代做网站有前途吗百度指数入口
  • 网站平台构建seo诊断网站
  • 怎么做网站客服软件微信指数
  • 长沙个人做网站百度关键词优化词精灵
  • 公司创建网站多少钱什么叫优化
  • 专业网站设计制合肥作深圳关键词推广排名
  • 电商网站制作价格有效的网络推广
  • 营销型网站建设公司易网拓网络营销公司是做什么的
  • 青岛建网站多少钱昆明网络推广优化
  • 广东专业做网站排名公司哪家好正规的培训学校
  • 自动更新的网站建设百度资讯
  • 如果做镜像网站百度爱采购
  • 大连网站制作在线专门代写平台
  • 日本做a网站衡水今日头条新闻
  • 17做网店seo网站优化专家
  • 南通网站建设排名老域名