question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: Additional algebraic operations for matrices

See original GitHub issue

I noticed that there are no addition or subtraction methods for Matrix3 or Matrix4, but there are for Vector3 and Vector4.

This features implies a minor changes in code and ends to be basic algebraic operations with several use cases.

i.e.: I would like to implement Classic Rodrigues Paramters and Modified Rodrigues Paramters attitude representations for a simulation tool. Addition and subtraction are crucial for this purpose.

Thanks and regards.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
WestLangleycommented, Jun 14, 2020

three.js is not a math library, otherwise there would be more methods. Also, we have not had a request for your specific methods – probably for the reasons I stated above.

Plus, .addMatrix() and .addMatrices() naturally leads to .subMatrix() and .subMatrixes(), and perhaps .negate().

Can you add your desired methods to the prototype from within your app? Does that work for you?

0reactions
WestLangleycommented, Jun 15, 2020

@Bgeninatti Thank you for your understanding, and good luck!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Algebraic Operations on a Matrix in R - GeeksforGeeks
These operations apply on a matrix elementwise and a new matrix is created. You can use all basic arithmetic operators like +, -,...
Read more >
Operations with Matrices - Linear Algebra - Cliffs Notes
As far as linear algebra is concerned, the two most important operations with vectors are vector addition [adding two (or more) vectors] and...
Read more >
Feature Request: Hessenberg and Schur decompositions
feature A request for a proper, new feature. module: linear algebra Issues related to specialized linear algebra operations in PyTorch; ...
Read more >
The three types of matrix row operations - Matrices - StudyPug
There exist three types of elementary matrix row operations: Interchanging two rows; Multiplying a row by a constant (any constant which is not...
Read more >
Matrix addition & subtraction (article) | Khan Academy
Adding & subtracting matrices. Learn how to find the result of matrix addition and subtraction operations.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found