Skip to content

Commit a8d8b2d

Browse files
author
Scott Murray
committed
Updated PVector mult() and div() reference
1 parent 4d43df7 commit a8d8b2d

File tree

2 files changed

+13
-16
lines changed

2 files changed

+13
-16
lines changed

core/src/processing/core/PVector.java

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ static public PVector sub(PVector v1, PVector v2) {
521521
* Subtract one vector from another and store in another vector
522522
* @param v1 the x, y, and z components of a PVector object
523523
* @param v2 the x, y, and z components of a PVector object
524-
* @param target PVector to store the result
524+
* @param target PVector in which to store the result
525525
*/
526526
static public PVector sub(PVector v1, PVector v2, PVector target) {
527527
if (target == null) {
@@ -542,8 +542,8 @@ static public PVector sub(PVector v1, PVector v2, PVector target) {
542542
*
543543
* @webref pvector:method
544544
* @usage web_application
545-
* @param n the number to multiply with the vector
546545
* @brief Multiply a vector by a scalar
546+
* @param n the number to multiply with the vector
547547
*/
548548
public void mult(float n) {
549549
x *= n;
@@ -554,7 +554,6 @@ public void mult(float n) {
554554

555555
/**
556556
* @param v the vector to multiply by the scalar
557-
* @nowebref
558557
*/
559558
static public PVector mult(PVector v, float n) {
560559
return mult(v, n, null);
@@ -563,8 +562,7 @@ static public PVector mult(PVector v, float n) {
563562

564563
/**
565564
* Multiply a vector by a scalar, and write the result into a target PVector.
566-
* @param target PVector to store the result
567-
* @nowebref
565+
* @param target PVector in which to store the result
568566
*/
569567
static public PVector mult(PVector v, float n, PVector target) {
570568
if (target == null) {
@@ -586,8 +584,8 @@ static public PVector mult(PVector v, float n, PVector target) {
586584
*
587585
* @webref pvector:method
588586
* @usage web_application
589-
* @param n the value to divide by
590587
* @brief Divide a vector by a scalar
588+
* @param n the number by which to divide the vector
591589
*/
592590
public void div(float n) {
593591
x /= n;
@@ -598,21 +596,16 @@ public void div(float n) {
598596

599597
/**
600598
* Divide a vector by a scalar and return the result in a new vector.
601-
* @param v any variable of type PVector
602-
* @param n the number to divide with the vector
599+
* @param v the vector to divide by the scalar
603600
* @return a new vector that is v1 / n
604-
* @nowebref
605601
*/
606602
static public PVector div(PVector v, float n) {
607603
return div(v, n, null);
608604
}
609605

610606
/**
611607
* Divide a vector by a scalar and store the result in another vector.
612-
* @param v any variable of type PVector
613-
* @param n the number to divide with the vector
614-
* @param target PVector to store the result
615-
* @nowebref
608+
* @param target PVector in which to store the result
616609
*/
617610
static public PVector div(PVector v, float n, PVector target) {
618611
if (target == null) {

core/src/processing/data/Table.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1717,7 +1717,7 @@ public void setRowCount(int newCount) {
17171717
rowCount = newCount;
17181718
}
17191719

1720-
/**
1720+
/**
17211721
* @webref table:method
17221722
* @brief Adds a row to the table
17231723
*/
@@ -1726,7 +1726,9 @@ public TableRow addRow() {
17261726
return new RowPointer(this, rowCount - 1);
17271727
}
17281728

1729-
1729+
/**
1730+
* @param source a reference to the original row to be duplicated
1731+
*/
17301732
public TableRow addRow(TableRow source) {
17311733
int row = rowCount;
17321734
// Make sure there are enough columns to add this data
@@ -1757,7 +1759,9 @@ public TableRow addRow(TableRow source) {
17571759
return new RowPointer(this, row);
17581760
}
17591761

1760-
1762+
/**
1763+
* @nowebref
1764+
*/
17611765
public TableRow addRow(Object[] columnData) {
17621766
setRow(getRowCount(), columnData);
17631767
return new RowPointer(this, rowCount - 1);

0 commit comments

Comments
 (0)