intersection-point-point.js

total 0
used 0
limit 0
/* title: Point Intersection category: intersections files: ../point_src/core/head.js ../point_src/pointpen.js ../point_src/pointdraw.js ../point_src/setunset.js ../point_src/stroke.js ../point_src/point-content.js ../point_src/pointlistpen.js ../point_src/pointlist.js ../point_src/point.js ../point_src/events.js ../point_src/automouse.js ../point_src/distances.js ../point_src/dragging.js ../point_src/functions/clamp.js ../point_src/mirror.js ../point_src/stage.js ../point_src/text/label.js ../point_src/intersections.js --- Discover the intersection of two points, the returned points are the intersection of those points. getCircleCircleIntersections(pointA, pointB) */ class MainStage extends Stage { canvas='playspace' mounted(){ this.pointA = new Point({x:200,y:200, radius:90}) this.pointB = new Point({x:390,y:240, radius:130}) this.dragging.addPoints(this.pointA, this.pointB) this.events.wake() } draw(ctx){ this.clear(ctx) this.pointA.pen.indicator(ctx) this.pointB.pen.indicator(ctx, {color: this.pointB.color}) let i2 = getCircleCircleIntersections(this.pointA, this.pointB) if(i2.length > 0) { i2.forEach((xy)=>{ let iPoint = (new Point).copy(xy).update({radius: 5}) // iPoint.radius = 30 iPoint.pen.fill(ctx, '#CC00BB') }) } } } ;stage = MainStage.go();
Run
Meta Data
title Point Intersection
imports ()
files ('../point_src/core/head.js', '../point_src/pointpen.js', '../point_src/pointdraw.js', '../point_src/setunset.js', '../point_src/stroke.js', '../point_src/point-content.js', '../point_src/pointlistpen.js', '../point_src/pointlist.js', '../point_src/point.js', '../point_src/events.js', '../point_src/automouse.js', '../point_src/distances.js', '../point_src/dragging.js', '../point_src/functions/clamp.js', '../point_src/mirror.js', '../point_src/stage.js', '../point_src/text/label.js', '../point_src/intersections.js')
unused_keys ()
unknown_keys ('category',)
category ['intersections']
filepath_exists True
path intersection-point-point.js
filepath intersection-point-point.js
clean_files ('../point_src/core/head.js', '../point_src/pointpen.js', '../point_src/pointdraw.js', '../point_src/setunset.js', '../point_src/stroke.js', '../point_src/compass.js', '../point_src/center.js', '../point_src/point-content.js', '../point_src/pointlistpen.js', '../point_src/pointlistdraw.js', '../point_src/pointlistgradient.js', '../point_src/pointlistshape.js', '../point_src/pointlistgenerator.js', '../point_src/unpack.js', '../point_src/pointlist.js', '../point_src/relative-xy.js', '../point_src/pointcast.js', '../point_src/point.js', '../point_src/events.js', '../point_src/automouse.js', '../point_src/distances.js', '../point_src/protractor.js', '../point_src/text/beta.js', '../point_src/dragging.js', '../point_src/functions/clamp.js', '../point_src/mirror.js', '../point_src/stage-resize.js', '../point_src/functions/resolve.js', '../point_src/stage.js', '../point_src/text/label.js', '../point_src/intersections.js')
markdown {'html': '<hr />\n<p>Discover the intersection of two points, the returned points\nare the intersection of those points.</p>\n<pre><code>getCircleCircleIntersections(pointA, pointB)\n</code></pre>', 'content': 'title: Point Intersection\ncategory: intersections\nfiles:\n ../point_src/core/head.js\n ../point_src/pointpen.js\n ../point_src/pointdraw.js\n ../point_src/setunset.js\n ../point_src/stroke.js\n ../point_src/point-content.js\n ../point_src/pointlistpen.js\n ../point_src/pointlist.js\n ../point_src/point.js\n ../point_src/events.js\n ../point_src/automouse.js\n ../point_src/distances.js\n ../point_src/dragging.js\n ../point_src/functions/clamp.js\n ../point_src/mirror.js\n ../point_src/stage.js\n ../point_src/text/label.js\n ../point_src/intersections.js\n\n---\n\nDiscover the intersection of two points, the returned points\nare the intersection of those points.\n\n getCircleCircleIntersections(pointA, pointB)'}