Skip to content

Commit b814af8

Browse files
committed
rename "startPos" formal arguments
1 parent 2830870 commit b814af8

4 files changed

Lines changed: 30 additions & 30 deletions

File tree

src/main/java/com/github/stephengold/joltjni/Float3.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ public Float3(FloatBuffer buffer) {
9797
* Instantiate from the specified position in the specified buffer.
9898
*
9999
* @param buffer the desired component values (not {@code null}, unaffected)
100-
* @param startPos the starting position in the buffer (≥0)
100+
* @param startPosition the starting position in the buffer (≥0)
101101
*/
102-
public Float3(FloatBuffer buffer, int startPos) {
103-
this.x = buffer.get(startPos);
104-
this.y = buffer.get(startPos + 1);
105-
this.z = buffer.get(startPos + 2);
102+
public Float3(FloatBuffer buffer, int startPosition) {
103+
this.x = buffer.get(startPosition);
104+
this.y = buffer.get(startPosition + 1);
105+
this.z = buffer.get(startPosition + 2);
106106
}
107107
// *************************************************************************
108108
// new methods exposed

src/main/java/com/github/stephengold/joltjni/Float4.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,13 @@ public Float4(FloatBuffer buffer) {
106106
* Instantiate from the specified position in the specified buffer.
107107
*
108108
* @param buffer the desired component values (not {@code null}, unaffected)
109-
* @param startPos the starting position in the buffer (≥0)
109+
* @param startPosition the starting position in the buffer (≥0)
110110
*/
111-
public Float4(FloatBuffer buffer, int startPos) {
112-
this.x = buffer.get(startPos);
113-
this.y = buffer.get(startPos + 1);
114-
this.z = buffer.get(startPos + 2);
115-
this.w = buffer.get(startPos + 3);
111+
public Float4(FloatBuffer buffer, int startPosition) {
112+
this.x = buffer.get(startPosition);
113+
this.y = buffer.get(startPosition + 1);
114+
this.z = buffer.get(startPosition + 2);
115+
this.w = buffer.get(startPosition + 3);
116116
}
117117
// *************************************************************************
118118
// new methods exposed

src/main/java/com/github/stephengold/joltjni/Vec3.java

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,12 @@ public Vec3(FloatBuffer buffer) {
137137
* Instantiate from the specified position in the specified buffer.
138138
*
139139
* @param buffer the desired component values (not {@code null}, unaffected)
140-
* @param startPos the starting position in the buffer (≥0)
140+
* @param startPosition the starting position in the buffer (≥0)
141141
*/
142-
public Vec3(FloatBuffer buffer, int startPos) {
143-
this.x = buffer.get(startPos);
144-
this.y = buffer.get(startPos + 1);
145-
this.z = buffer.get(startPos + 2);
142+
public Vec3(FloatBuffer buffer, int startPosition) {
143+
this.x = buffer.get(startPosition);
144+
this.y = buffer.get(startPosition + 1);
145+
this.z = buffer.get(startPosition + 2);
146146
}
147147

148148
/**
@@ -359,12 +359,12 @@ public void set(FloatBuffer buffer) {
359359
* Set all 3 components from the specified position in the specified buffer.
360360
*
361361
* @param buffer the desired component values (not {@code null}, unaffected)
362-
* @param startPos the starting position in the buffer (≥0)
362+
* @param startPosition the starting position in the buffer (≥0)
363363
*/
364-
public void set(FloatBuffer buffer, int startPos) {
365-
this.x = buffer.get(startPos);
366-
this.y = buffer.get(startPos + 1);
367-
this.z = buffer.get(startPos + 2);
364+
public void set(FloatBuffer buffer, int startPosition) {
365+
this.x = buffer.get(startPosition);
366+
this.y = buffer.get(startPosition + 1);
367+
this.z = buffer.get(startPosition + 2);
368368
}
369369

370370
/**
@@ -699,14 +699,14 @@ public void copyTo(FloatBuffer storeBuffer) {
699699
* Write all 3 components to the specified position in the specified buffer.
700700
*
701701
* @param storeFloats the destination buffer (not {@code null},
702-
* capacity≥startPos+3)
703-
* @param startPos the starting position in the buffer (≥0)
702+
* capacity≥startPosition+3)
703+
* @param startPosition the starting position in the buffer (≥0)
704704
*/
705705
@Override
706-
public void copyTo(FloatBuffer storeFloats, int startPos) {
707-
storeFloats.put(startPos, x);
708-
storeFloats.put(startPos + 1, y);
709-
storeFloats.put(startPos + 2, z);
706+
public void copyTo(FloatBuffer storeFloats, int startPosition) {
707+
storeFloats.put(startPosition, x);
708+
storeFloats.put(startPosition + 1, y);
709+
storeFloats.put(startPosition + 2, z);
710710
}
711711

712712
/**

src/main/java/com/github/stephengold/joltjni/readonly/Vec3Arg.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ public interface Vec3Arg {
5959
* Write all 3 components to the specified position in the specified buffer.
6060
*
6161
* @param storeFloats the destination buffer (not {@code null},
62-
* capacity≥startPos+3)
63-
* @param startPos the starting position in the buffer (≥0)
62+
* capacity≥startPosition+3)
63+
* @param startPosition the starting position in the buffer (≥0)
6464
*/
65-
void copyTo(FloatBuffer storeFloats, int startPos);
65+
void copyTo(FloatBuffer storeFloats, int startPosition);
6666

6767
/**
6868
* Return the cross product with the argument. Both vectors are unaffected.

0 commit comments

Comments
 (0)