Skip to content

IvanKorovin/intersections

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Intersections

##Intersection of two polygons in Javascript ###Введение Как было сказано в [комментариях] (http://ain.ua/2016/02/23/634216) "Чтобы попасть на курс, нужно выполнить тестовое задание. По словам представителя «Котанов» Артема Сычева, тестовые задания можно решить, опираясь на базовые школьные знания и продвинутое умение гуглить."

Так и сделал - гуглил!

Сделал, как указано в задании kottans-intersections.md: создать "... функцию intersect"

Результат

"JavaScript library that take 2 polygons and return a third polygon that represents an intersection of the given 2 polygons. It works for both convex and concave polygon, but probably not as expected for complex polygons. Polygons are javascript arrays of Points. 'Point' is any javascript object that has both x and y numeric properties. The order of points in an array that defines a polygon is very important. The same set of n points can produce n! different polygons. Most all of them will be complex." Первоисточник

About

Intersection of two polygons in Javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published