fix: Expand the signature of `std.sign` and `std.floor` to accept the union `number | d.v2f | d.v3f | d.v4f`
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 67/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- typescript
- Domain
- api, computer-graphics
Research direction
Start by locating the std.sign and std.floor entry points and their current type signatures. Check the remainder example with number | d.v2f, then verify that both functions accept number | d.v2f | d.v3f | d.v4f and that the relevant type checks pass.
Written by the indexing model from the issue text.
Description
const remainder = (x: number | d.v2f, y: number | d.v2f) => {
'use gpu';
const truncDiv = std.sign(x / y) * std.floor(std.abs(x / y));
// ^^^^^ ^^^^^^^^^^^^^^
return x - y * truncDiv;
};
- Dominant language
- TypeScript
- Stars
- 3.2k
- Forks
- 123
- Avg merge
- 3d 5h
- Merged PRs (30d)
- 34
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from software-mansion/TypeGPU
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
software-mansion/TypeGPU#3008 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
software-mansion/TypeGPU#2948 · 2 comments ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
software-mansion/TypeGPU#2897 · 3 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
software-mansion/TypeGPU#2890 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
software-mansion/TypeGPU#2673 · 1 comment ·
All issues in software-mansion/TypeGPU
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
fullcalendar/fullcalendar#8106 ·