Skip to content

Commit fc369d1

Browse files
committed
updated comments
1 parent 5965b34 commit fc369d1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

core/src/processing/core/PMatrix.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,18 @@ public void preApply(float n00, float n01, float n02, float n03,
119119

120120

121121
/**
122-
* Multiply a PVector by this matrix.
122+
* Multiply source by this matrix, and return the result.
123+
* The result will be stored in target if target is non-null, and target
124+
* will then be the matrix returned. This improves performance if you reuse
125+
* target, so it's recommended if you call this many times in draw().
123126
*/
124127
public PVector mult(PVector source, PVector target);
125128

126129

127130
/**
128131
* Multiply a multi-element vector against this matrix.
132+
* Supplying and recycling a target array improves performance, so it's
133+
* recommended if you call this many times in draw().
129134
*/
130135
public float[] mult(float[] source, float[] target);
131136

0 commit comments

Comments
 (0)