Skip to content

Commit

Permalink
Fixed cone
Browse files Browse the repository at this point in the history
  • Loading branch information
dmrickey committed Jul 7, 2024
1 parent 514ed57 commit 610008c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,7 @@ export class MeasuredTemplatePFAdvanced extends MeasuredTemplate {
const withinCone = (target, minAngle, maxAngle) => {
const ray = new Ray(tCenter, target);
const rayAngle = Math.normalizeDegrees(Math.toDegrees(ray.angle));
const rayWithinAngle = withinAngle(minAngle, maxAngle, rayAngle);
const rayWithinAngle = this.withinAngle(minAngle, maxAngle, rayAngle);
// Calculate ray length in relation to circle radius
const raySceneLength = (ray.distance / gridSizePx) * gridSizeUnits;
// Include token if its within template distance and within the cone's angle
Expand Down

0 comments on commit 610008c

Please sign in to comment.