You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since PMatrix2D and PMatrix3D both have a print() method with matching signatures, it would make sense for their common interface PMatrix to have this method. Right now I have to do this:
And since I'm here, usually you would override the toString() method for this so the client can decide what to do with it, such as printing to the console. I'm sure you have your reasons for doing it this way though.
Hey @benfry@PianoMastR64 do you mean something like this?
public void printMatrix(PMatrix matrix) {
System.out.println(matrix.toString());
}
can you describe a bit further....I want to work on it
And since I'm here, I have a suggestion that doesn't have to be taken seriously. I'm just having fun learning about streams and functional programming in Java recently.
Oh, also Float.isNaN() and Float.isInfinite() are being checked on int big which is not a float. Not sure why that is. I'm guessing big was a float in the past
And since I'm here, I have a suggestion that doesn't have to be taken seriously. I'm just having fun learning about streams and functional programming in Java recently.
@Stefterv
Hello,
We are college students and our goal is to practice and learn by contributing to open source projects. We found this project and would like to contribute. Could you please assign this issue to us as a starting point? Thank you!
Hello, sorry for the short notice, but we’re very interested in this project and would really like to contribute. Would it be possible to assign this issue to us? Thank you.
Hi, I noticed there hasn't been activity on this since February. I am a beginner and would like to work on this. Can this be assigned to me so that I can submit a PR?
Hello, I am interested in working on this issue. I would like to add print() to the PMatrix interface and override them in the PMatrix2D and PMatrix3D classes.
@satindra-r hi! we do have a solution out there with some requested changes. please reach out to us in the discord because there are many other tasks i can get you started on
Activity
processing-bot commentedon Dec 16, 2023
Created by: PianoMastR64
And since I'm here, usually you would override the
toString()method for this so the client can decide what to do with it, such as printing to the console. I'm sure you have your reasons for doing it this way though.processing-bot commentedon Feb 3, 2024
Created by: vaishnavi192
Hey @benfry @PianoMastR64 do you mean something like this?
public void printMatrix(PMatrix matrix) {
System.out.println(matrix.toString());
}
can you describe a bit further....I want to work on it
processing-bot commentedon Feb 8, 2024
Created by: PianoMastR64
@vaishnavi192 I was thinking something maybe like this:
processing-bot commentedon Feb 8, 2024
Created by: PianoMastR64
And since I'm here, I have a suggestion that doesn't have to be taken seriously. I'm just having fun learning about streams and functional programming in Java recently.
This:
Could be turned into this:
It's a little more readable. Also, I didn't test it.
processing-bot commentedon Feb 8, 2024
Created by: PianoMastR64
Oh, also
Float.isNaN()andFloat.isInfinite()are being checked onint bigwhich is not a float. Not sure why that is. I'm guessing big was a float in the pastprocessing-bot commentedon Feb 12, 2024
Created by: rndmbluescreen
the contribution guidelines say no ;)
also this is my first pull request so let's see how this goes
SableRaf commentedon Jan 17, 2025
Hey @rndmbluescreen are you still interested in this issue? If so would you mind re-submitting your PR (link)?
cc @PianoMastR64 @Stefterv
junavw commentedon Oct 7, 2025
@Stefterv
Hello,
We are college students and our goal is to practice and learn by contributing to open source projects. We found this project and would like to contribute. Could you please assign this issue to us as a starting point? Thank you!
junavw commentedon Oct 8, 2025
@SableRaf ?
junavw commentedon Oct 9, 2025
Hello, sorry for the short notice, but we’re very interested in this project and would really like to contribute. Would it be possible to assign this issue to us? Thank you.
junavw commentedon Oct 13, 2025
@Stefterv ?
Sumamasonia commentedon Dec 6, 2025
Hi, I noticed there hasn't been activity on this since February. I am a beginner and would like to work on this. Can this be assigned to me so that I can submit a PR?
Sumamasonia commentedon Dec 19, 2025
@Stefterv , I want to work on this so can you assign this issue to me?
SableRaf commentedon Dec 19, 2025
Hi @junavw. Hello @Sumamasonia. Thanks for your interest in contributing to Processing.
Please take a look at the Contributor Guidelines and in particular the Making your First Contribution section. If you have any questions, feel free to join our Discord and ask in the contribute-to-processing channel.
Please note that we may be slow to answer due to the holidays.
satindra-r commentedon Jan 23, 2026
Hello, I am interested in working on this issue. I would like to add print() to the PMatrix interface and override them in the PMatrix2D and PMatrix3D classes.
catilac commentedon Jan 29, 2026
@satindra-r hi! we do have a solution out there with some requested changes. please reach out to us in the discord because there are many other tasks i can get you started on
Added print() method to PMatrix (Fixes processing#811) (processing#1355)