diff --git a/jme3-core/src/main/java/com/jme3/cinematic/MotionPathListener.java b/jme3-core/src/main/java/com/jme3/cinematic/MotionPathListener.java
index f441aae5e..abda537e7 100644
--- a/jme3-core/src/main/java/com/jme3/cinematic/MotionPathListener.java
+++ b/jme3-core/src/main/java/com/jme3/cinematic/MotionPathListener.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -34,7 +34,7 @@ package com.jme3.cinematic;
import com.jme3.cinematic.events.MotionEvent;
/**
- * Trigger the events happening on an motion path
+ * Trigger the events happening on a motion path
* @author Nehon
*/
public interface MotionPathListener {
diff --git a/jme3-core/src/main/java/com/jme3/input/Joystick.java b/jme3-core/src/main/java/com/jme3/input/Joystick.java
index ced1d962a..8c55c906e 100644
--- a/jme3-core/src/main/java/com/jme3/input/Joystick.java
+++ b/jme3-core/src/main/java/com/jme3/input/Joystick.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -123,7 +123,7 @@ public interface Joystick {
/**
* Returns the POV Y axis for this joystick. This is a convenience axis
- * providing an y-axis subview of the HAT axis.
+ * providing a y-axis subview of the HAT axis.
*
* @see JoystickAxis#assignAxis(java.lang.String, java.lang.String)
*/
diff --git a/jme3-core/src/main/java/com/jme3/math/FastMath.java b/jme3-core/src/main/java/com/jme3/math/FastMath.java
index c1c3fa8a9..1bbf37fca 100644
--- a/jme3-core/src/main/java/com/jme3/math/FastMath.java
+++ b/jme3-core/src/main/java/com/jme3/math/FastMath.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -860,7 +860,7 @@ final public class FastMath {
}
/**
- * Takes an value and expresses it in terms of min to max.
+ * Takes a value and expresses it in terms of min to max.
*
* @param val -
* the angle to normalize (in radians)
diff --git a/jme3-core/src/main/java/com/jme3/shader/Glsl100ShaderGenerator.java b/jme3-core/src/main/java/com/jme3/shader/Glsl100ShaderGenerator.java
index 9673880b1..196b6021d 100644
--- a/jme3-core/src/main/java/com/jme3/shader/Glsl100ShaderGenerator.java
+++ b/jme3-core/src/main/java/com/jme3/shader/Glsl100ShaderGenerator.java
@@ -623,7 +623,7 @@ public class Glsl100ShaderGenerator extends ShaderGenerator {
/**
* Declares a varying
* @param source the StringBuilder to use
- * @param var the variable to declare as an varying
+ * @param var the variable to declare as a varying
* @param input a boolean set to true if the this varying is an input.
* this in not used in this implementation but can be used in overriding
* implementation
diff --git a/jme3-core/src/plugins/java/com/jme3/export/binary/ByteUtils.java b/jme3-core/src/plugins/java/com/jme3/export/binary/ByteUtils.java
index 62b01ecc5..f66a7fc7e 100644
--- a/jme3-core/src/plugins/java/com/jme3/export/binary/ByteUtils.java
+++ b/jme3-core/src/plugins/java/com/jme3/export/binary/ByteUtils.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -269,7 +269,7 @@ public class ByteUtils {
}
public static long convertLongFromBytes(byte[] bytes, int offset) {
- // Convert it to an long
+ // Convert it to a long
return ((((long) bytes[offset+7]) & 0xFF)
+ ((((long) bytes[offset+6]) & 0xFF) << 8)
+ ((((long) bytes[offset+5]) & 0xFF) << 16)
@@ -340,7 +340,7 @@ public class ByteUtils {
// ********** byte <> float METHODS **********
/**
- * Writes an float out to an OutputStream.
+ * Writes a float out to an OutputStream.
*
* @param outputStream
* The OutputStream the float will be written to
diff --git a/jme3-desktop/src/main/java/jme3tools/navigation/Coordinate.java b/jme3-desktop/src/main/java/jme3tools/navigation/Coordinate.java
index 0a8e82360..79a72f571 100644
--- a/jme3-desktop/src/main/java/jme3tools/navigation/Coordinate.java
+++ b/jme3-desktop/src/main/java/jme3tools/navigation/Coordinate.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -116,7 +116,7 @@ public class Coordinate {
* This constructor takes a coordinate in the ALRS formats i.e
* 38∞31.64'N for lat, and 28∞19.12'W for long
* Note: ALRS positions are occasionally written with the decimal minutes
- * apostrophe in the 'wrong' place and with an non CP1252 compliant decimal character.
+ * apostrophe in the 'wrong' place and with a non CP1252 compliant decimal character.
* This issue has to be corrected in the source database
* @param coOrdinate
* @throws InvalidPositionException
diff --git a/jme3-effects/src/main/java/com/jme3/post/filters/RadialBlurFilter.java b/jme3-effects/src/main/java/com/jme3/post/filters/RadialBlurFilter.java
index 5cb5a803e..28cc2c28c 100644
--- a/jme3-effects/src/main/java/com/jme3/post/filters/RadialBlurFilter.java
+++ b/jme3-effects/src/main/java/com/jme3/post/filters/RadialBlurFilter.java
@@ -124,7 +124,7 @@ public class RadialBlurFilter extends Filter {
}
/**
- * sets the sample streanght default is 2.2
+ * sets the sample strength default is 2.2
* @param sampleStrength
*/
public void setSampleStrength(float sampleStrength) {
diff --git a/jme3-effects/src/main/java/com/jme3/water/WaterFilter.java b/jme3-effects/src/main/java/com/jme3/water/WaterFilter.java
index f4f6e3af7..162abb85e 100644
--- a/jme3-effects/src/main/java/com/jme3/water/WaterFilter.java
+++ b/jme3-effects/src/main/java/com/jme3/water/WaterFilter.java
@@ -569,8 +569,8 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
/**
* This is a constant related to the index of refraction (IOR) used to compute the fresnel term.
* F = R0 + (1-R0)( 1 - N.V)^5
- * where F is the fresnel term, R0 the constant, N the normal vector and V tne view vector.
- * It usually depend on the material you are lookinh through (here water).
+ * where F is the fresnel term, R0 the constant, N the normal vector and V the view vector.
+ * It usually depend on the material you are looking through (here water).
* Default value is 0.3f
* In practice, the lowest the value and the less the reflection can be seen on water
* @param refractionConstant
@@ -683,7 +683,7 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
}
/**
- * returns the refractionStrenght
+ * returns the refractionStrength
* @return
*/
public float getRefractionStrength() {
@@ -692,7 +692,7 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
/**
* This value modifies current fresnel term. If you want to weaken
- * reflections use bigger value. If you want to empasize them use
+ * reflections use bigger value. If you want to emphasize them use
* value smaller then 0. Default is 0.0f.
* @param refractionStrength
*/
@@ -725,7 +725,7 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
}
/**
- * returns the foam existance vector
+ * returns the foam existence vector
* @return
*/
public Vector3f getFoamExistence() {
@@ -766,7 +766,7 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
}
/**
- * Returns the color exctinction vector of the water
+ * Returns the color extinction vector of the water
* @return
*/
public Vector3f getColorExtinction() {
@@ -778,7 +778,7 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
* the first value is for red
* the second is for green
* the third is for blue
- * Play with thos parameters to "trouble" the water
+ * Play with those parameters to "trouble" the water
* default is (5.0, 20.0, 30.0f);
* @param colorExtinction
*/
diff --git a/jme3-examples/src/main/java/jme3test/model/anim/TestAttachmentsNode.java b/jme3-examples/src/main/java/jme3test/model/anim/TestAttachmentsNode.java
index ab592d05e..89e60559d 100644
--- a/jme3-examples/src/main/java/jme3test/model/anim/TestAttachmentsNode.java
+++ b/jme3-examples/src/main/java/jme3test/model/anim/TestAttachmentsNode.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2017 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -51,7 +51,7 @@ import com.jme3.scene.Spatial;
import com.jme3.scene.shape.Box;
/**
- * Simple application to an test attachments node on the Jaime model.
+ * Simple application to test an attachments node on the Jaime model.
*
* Derived from {@link jme3test.model.anim.TestOgreAnim}.
*/
diff --git a/jme3-examples/src/main/java/jme3test/renderer/TestAspectRatio.java b/jme3-examples/src/main/java/jme3test/renderer/TestAspectRatio.java
index c557b7f5f..bdb526710 100644
--- a/jme3-examples/src/main/java/jme3test/renderer/TestAspectRatio.java
+++ b/jme3-examples/src/main/java/jme3test/renderer/TestAspectRatio.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2017 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -38,7 +38,7 @@ import com.jme3.scene.Geometry;
import com.jme3.scene.shape.Box;
/**
- * Simple application to an test a viewport/camera with a different aspect ratio
+ * Simple application to test a viewport/camera with a different aspect ratio
* than the display -- issue #357. The cube should render as a blue square, not
* a rectangle.
*
diff --git a/jme3-jogg/src/main/java/com/jme3/audio/plugins/OGGLoader.java b/jme3-jogg/src/main/java/com/jme3/audio/plugins/OGGLoader.java
index 8b0006182..2302c5f4e 100644
--- a/jme3-jogg/src/main/java/com/jme3/audio/plugins/OGGLoader.java
+++ b/jme3-jogg/src/main/java/com/jme3/audio/plugins/OGGLoader.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -152,7 +152,7 @@ public class OGGLoader implements AssetLoader {
// HACK: Reload the logical and vorbis streams from scratch
// based on the existing ogg page data.
// This fixes an audio discontinuity issue when looping
- // an streaming OGG file via setTime(0).
+ // a streaming OGG file via setTime(0).
ls = ((CachedOggStream) ps).reloadLogicalOggStream();
vs = new VorbisStream(ls);
endOfStream = false;
diff --git a/jme3-terrain/src/main/java/com/jme3/terrain/heightmap/FaultHeightMap.java b/jme3-terrain/src/main/java/com/jme3/terrain/heightmap/FaultHeightMap.java
index 5bef6a912..d5594b19a 100644
--- a/jme3-terrain/src/main/java/com/jme3/terrain/heightmap/FaultHeightMap.java
+++ b/jme3-terrain/src/main/java/com/jme3/terrain/heightmap/FaultHeightMap.java
@@ -37,7 +37,7 @@ import java.util.logging.Level;
import java.util.logging.Logger;
/**
- * Creates an heightmap based on the fault algorithm. Each iteration, a random line
+ * Creates a heightmap based on the fault algorithm. Each iteration, a random line
* crossing the map is generated. On one side height values are raised, on the other side
* lowered.
* @author cghislai
@@ -118,7 +118,7 @@ public class FaultHeightMap extends AbstractHeightMap {
}
/**
- * Create an heightmap with linear step faults.
+ * Create a heightmap with linear step faults.
* @param size size of heightmap
* @param iterations number of iterations
* @param minFaultHeight Height modified on each side
diff --git a/jme3-terrain/src/main/java/com/jme3/terrain/heightmap/MidpointDisplacementHeightMap.java b/jme3-terrain/src/main/java/com/jme3/terrain/heightmap/MidpointDisplacementHeightMap.java
index 34b20a398..7a53c9711 100644
--- a/jme3-terrain/src/main/java/com/jme3/terrain/heightmap/MidpointDisplacementHeightMap.java
+++ b/jme3-terrain/src/main/java/com/jme3/terrain/heightmap/MidpointDisplacementHeightMap.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -37,7 +37,7 @@ import java.util.logging.Level;
import java.util.logging.Logger;
/**
- * MidpointDisplacementHeightMap
generates an heightmap based on
+ * MidpointDisplacementHeightMap
generates a heightmap based on
* the midpoint displacement algorithm. See Constructor javadoc for more info.
* @author cghislai
*/
@@ -50,7 +50,7 @@ public class MidpointDisplacementHeightMap extends AbstractHeightMap {
/**
* The constructor generates the heightmap. After the first 4 corners are
- * randomly given an height, the center will be heighted to the average of
+ * randomly given a height, the center will be heighted to the average of
* the 4 corners to which a random value is added. Then other passes fill
* the heightmap by the same principle.
* The random value is generated between the values -range
@@ -87,7 +87,7 @@ public class MidpointDisplacementHeightMap extends AbstractHeightMap {
/**
* The constructor generates the heightmap. After the first 4 corners are
- * randomly given an height, the center will be heighted to the average of
+ * randomly given a height, the center will be heighted to the average of
* the 4 corners to which a random value is added. Then other passes fill
* the heightmap by the same principle.
* The random value is generated between the values -range
@@ -156,10 +156,10 @@ public class MidpointDisplacementHeightMap extends AbstractHeightMap {
/**
* Will fill the value at (coords[0]+stepSize/2, coords[1]+stepSize/2) with
- * the average from the corners of the square with topleft corner at (coords[0],coords[1])
+ * the average from the corners of the square with top, left corner at (coords[0],coords[1])
* and width of stepSize.
- * @param tempBuffer the temprary heightmap
- * @param coords an int array of lenght 2 with the x coord in position 0
+ * @param tempBuffer the temporary heightmap
+ * @param coords an int array of length 2 with the x coord in position 0
* @param stepSize the size of the square
* @param offsetRange the offset range within a random value is picked and added to the average
* @param random the random generator
diff --git a/jme3-vr/src/main/java/com/jme3/input/vr/VRAPI.java b/jme3-vr/src/main/java/com/jme3/input/vr/VRAPI.java
index 365e515b9..b1d0fc46a 100644
--- a/jme3-vr/src/main/java/com/jme3/input/vr/VRAPI.java
+++ b/jme3-vr/src/main/java/com/jme3/input/vr/VRAPI.java
@@ -92,8 +92,8 @@ public interface VRAPI {
public void reset();
/**
- * Get the size of an Head Mounted Device (HMD) rendering area in pixels.
- * @param store the size of an Head Mounted Device (HMD) rendering area in pixels (modified).
+ * Get the size of a Head Mounted Device (HMD) rendering area in pixels.
+ * @param store the size of a Head Mounted Device (HMD) rendering area in pixels (modified).
*/
public void getRenderSize(Vector2f store);
diff --git a/jme3-vr/src/main/java/com/jme3/input/vr/VRInputAPI.java b/jme3-vr/src/main/java/com/jme3/input/vr/VRInputAPI.java
index d576d1943..6cb9afb41 100644
--- a/jme3-vr/src/main/java/com/jme3/input/vr/VRInputAPI.java
+++ b/jme3-vr/src/main/java/com/jme3/input/vr/VRInputAPI.java
@@ -89,16 +89,16 @@ public interface VRInputAPI {
public boolean init();
/**
- * Get the number of tracked controller (for example an hand controllers) attached to the VR system.
- * @return the number of controller attached to the VR system.
+ * Get the number of tracked controllers (for example, hand controllers) attached to the VR system.
+ * @return the number of controllers attached to the VR system.
* @see #getTrackedController(int)
*/
public int getTrackedControllerCount();
/**
- * Get the tracked controller (for example an hand controllers) that is attached to the VR system.
+ * Get a tracked controller (for example, a hand controller) that is attached to the VR system.
* @param index the index of the controller.
- * @return the tracked controller (for example an hand controllers) that is attached to the VR system.
+ * @return the tracked controller (for example, a hand controller) that is attached to the VR system.
* @see #getTrackedControllerCount()
*/
public VRTrackedController getTrackedController(int index);
@@ -189,7 +189,7 @@ public interface VRInputAPI {
public Vector3f getFinalObserverPosition(int index);
/**
- * Trigger an haptic pulse on the selected controller for the duration given in parameters (in seconds).
+ * Trigger a haptic pulse on the selected controller for the duration given in parameters (in seconds).
* @param controllerIndex the index of the controller.
* @param seconds the duration of the pulse in seconds.
*/
diff --git a/jme3-vr/src/main/java/com/jme3/input/vr/openvr/OpenVRInput.java b/jme3-vr/src/main/java/com/jme3/input/vr/openvr/OpenVRInput.java
index 1619d7a9f..08c697fa2 100644
--- a/jme3-vr/src/main/java/com/jme3/input/vr/openvr/OpenVRInput.java
+++ b/jme3-vr/src/main/java/com/jme3/input/vr/openvr/OpenVRInput.java
@@ -486,7 +486,7 @@ public class OpenVRInput implements VRInputAPI {
}
trackedControllers.add(new OpenVRTrackedController(i, this, controllerName, manufacturerName, environment));
- // Send an Haptic pulse to the controller
+ // Send a Haptic pulse to the controller
triggerHapticPulse(controllerCount, 1.0f);
controllerCount++;