Khan / Khan/live-editor

PVector.limit() does not behave as expected with 2-D Vectors

Open
#379 7 comments 0 reactions 0 assignees View on GitHub
bug good first bug pjs
Dominant language
JavaScript
Stars
776
Forks
180
PR merge metrics
No merged PRs in 30d

Description

Reported on ZenDesk.

"If .add is used with only two parameters (i.e., a 2-D vector) and then .limit is used, the .limit function has no effect. If the .add is used with 0 for the third parameter, everything is fine."

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the PVector.limit() and two-argument PVector.add() entry points, then reproduce the reported difference between a 2-D add and an add with a zero third parameter. Trace why limit has no effect in the 2-D case and verify that both forms produce consistent limiting behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.