首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > JavaScript > JavaScript库可视多边形

JavaScript库可视多边形

  • 资源大小:4.88 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: javascript 可视 多边形

资 源 简 介

Download latest version: http://www.byronknoll.com/visibilitypolygon1-5.zip This code is released into the public domain - attribution is appreciated but not required. Made by Byron Knoll in 2014. Demo: http://www.byronknoll.com/visibility.html This library can be used to construct a visibility polygon for a set of line segments. The time complexity of this implementation is O(N log N) (where N is the total number of line segments). This is the optimal time complexity for this problem. The following functions should be useful: 1. compute(position, segments): * Computes a visibility polygon. O(N log N) time complexity (where N is the number of line segments). * Arguments: * position - The location of the observer. Must be completely surrounded by line segments (an easy way to enforce this is to create an outer bounding box). * segments - A list of line segments. Each line segment should be a list of two points. Each point shoul

文 件 列 表

visibility_polygon.js
visibility_polygon_dev.js

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
  • 开心快活人 43分钟前 成为了本站会员

  • 晋财 1小时前 成为了本站会员

  • WYG 1天前 成为了本站会员

  • Shine 1天前 成为了本站会员

  • 柳贻 1天前 成为了本站会员

  • hallelujah_HL 1天前 成为了本站会员

  • 焦昱贺 1天前 成为了本站会员

  • Rubin 1天前 成为了本站会员

  • Li 2天前 成为了本站会员

  • bigfatcat1977 3天前 成为了本站会员

0.230557s