Permalink
Browse files

comment corrections: mostly spelling and grammar

  • Loading branch information...
stephengold committed Jan 17, 2018
1 parent d8fb815 commit b159c847cc20108ce280febe4fdb6a9fb3fc7d6f
Showing with 138 additions and 138 deletions.
  1. +1 −1 jme3-android-examples/src/main/java/org/jmonkeyengine/jme3androidexamples/MainActivity.java
  2. +3 −3 jme3-android/src/main/java/com/jme3/input/android/AndroidSensorJoyInput.java
  3. +2 −2 jme3-android/src/main/java/com/jme3/system/android/OGLESContext.java
  4. +1 −1 jme3-blender/src/main/java/com/jme3/scene/plugins/blender/constraints/SimulationNode.java
  5. +7 −7 jme3-blender/src/main/java/com/jme3/scene/plugins/blender/curves/CurvesTemporalMesh.java
  6. +3 −3 jme3-blender/src/main/java/com/jme3/scene/plugins/blender/file/DynamicArray.java
  7. +3 −3 jme3-blender/src/main/java/com/jme3/scene/plugins/blender/file/Structure.java
  8. +1 −1 jme3-blender/src/main/java/com/jme3/scene/plugins/blender/materials/MaterialContext.java
  9. +9 −9 jme3-blender/src/main/java/com/jme3/scene/plugins/blender/math/Vector3d.java
  10. +2 −2 jme3-blender/src/main/java/com/jme3/scene/plugins/blender/modifiers/SubdivisionSurfaceModifier.java
  11. +4 −4 jme3-blender/src/main/java/com/jme3/scene/plugins/blender/textures/TextureHelper.java
  12. +15 −15 jme3-bullet/src/common/java/com/jme3/bullet/control/KinematicRagdollControl.java
  13. +3 −3 jme3-bullet/src/common/java/com/jme3/bullet/control/ragdoll/RagdollUtils.java
  14. +2 −2 jme3-bullet/src/main/java/com/jme3/bullet/joints/HingeJoint.java
  15. +2 −2 jme3-effects/src/main/java/com/jme3/post/filters/FadeFilter.java
  16. +6 −6 jme3-effects/src/main/java/com/jme3/post/filters/LightScatteringFilter.java
  17. +4 −4 jme3-effects/src/main/java/com/jme3/post/ssao/SSAOFilter.java
  18. +3 −3 jme3-effects/src/main/java/com/jme3/water/SimpleWaterProcessor.java
  19. +3 −3 jme3-effects/src/main/java/com/jme3/water/WaterFilter.java
  20. +2 −2 jme3-examples/src/main/java/jme3test/bullet/PhysicsTestHelper.java
  21. +4 −4 jme3-examples/src/main/java/jme3test/bullet/TestKinematicAddToPhysicsSpaceIssue.java
  22. +2 −2 jme3-examples/src/main/java/jme3test/input/TestChaseCamera.java
  23. +2 −2 jme3-examples/src/main/java/jme3test/input/TestChaseCameraAppState.java
  24. +2 −2 jme3-examples/src/main/java/jme3test/model/anim/TestAnimationFactory.java
  25. +2 −2 jme3-examples/src/main/java/jme3test/network/TestLatency.java
  26. +3 −3 jme3-examples/src/main/java/jme3test/terrain/TerrainTest.java
  27. +2 −2 jme3-examples/src/main/java/jme3test/tools/TestSaveGame.java
  28. +2 −2 jme3-jbullet/src/main/java/com/jme3/bullet/joints/HingeJoint.java
  29. +3 −3 jme3-jogl/src/main/java/com/jme3/renderer/jogl/TextureUtil.java
  30. +3 −3 jme3-lwjgl/src/main/java/com/jme3/system/lwjgl/LwjglAbstractDisplay.java
  31. +3 −3 jme3-lwjgl/src/main/java/com/jme3/system/lwjgl/LwjglSmoothingTimer.java
  32. +2 −2 jme3-lwjgl/src/main/java/com/jme3/system/lwjgl/LwjglTimer.java
  33. +3 −3 jme3-lwjgl3/src/main/java/com/jme3/system/lwjgl/LwjglWindow.java
  34. +2 −2 jme3-networking/src/main/java/com/jme3/network/base/NioKernelFactory.java
  35. +2 −2 jme3-networking/src/main/java/com/jme3/network/service/rmi/RmiHostedService.java
  36. +4 −4 jme3-networking/src/main/java/com/jme3/network/util/AbstractMessageDelegator.java
  37. +2 −2 jme3-niftygui/src/main/java/com/jme3/niftygui/NiftyJmeDisplay.java
  38. +1 −1 jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/MaterialAdapter.java
  39. +2 −2 jme3-plugins/src/ogre/java/com/jme3/scene/plugins/ogre/MaterialLoader.java
  40. +2 −2 jme3-terrain/src/main/java/com/jme3/terrain/GeoMap.java
  41. +3 −3 jme3-terrain/src/main/java/com/jme3/terrain/Terrain.java
  42. +3 −3 jme3-terrain/src/main/java/com/jme3/terrain/geomipmap/TerrainPatch.java
  43. +2 −2 jme3-terrain/src/main/java/com/jme3/terrain/heightmap/CombinerHeightMap.java
  44. +2 −2 jme3-terrain/src/main/java/com/jme3/terrain/heightmap/FaultHeightMap.java
  45. +2 −2 jme3-terrain/src/main/java/com/jme3/terrain/heightmap/Namer.java
  46. +2 −2 jme3-terrain/src/main/java/com/jme3/terrain/noise/filter/HydraulicErodeFilter.java
@@ -214,7 +214,7 @@ public void onItemClick(AdapterView<?> parent, View view, int position, long id)
/**
* User clicked a view on the screen. Check for the OK and Cancel buttons
* and either start the applicaiton or exit.
* and either start the application or exit.
* @param view
*/
public void onClick(View view) {
@@ -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
@@ -285,8 +285,8 @@ private int getScreenRotation() {
}
/**
* Calculates the device orientation based off the data recieved from the
* Acceleration Sensor and Mangetic Field sensor
* Calculates the device orientation based off the data received from the
* Acceleration Sensor and Magnetic Field sensor
* Values are returned relative to the Earth.
*
* From the Android Doc
@@ -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
@@ -136,7 +136,7 @@ public GLSurfaceView createView(Context context) {
// stops at the setFormat call without a crash.
// We look at the user setting for alpha bits and set the surfaceview
// PixelFormat to either Opaque, Transparent, or Translucent.
// ConfigChooser will do it's best to honor the alpha requested by the user
// ConfigChooser will do its best to honor the alpha requested by the user
// For best rendering performance, use Opaque (alpha bits = 0).
int curAlphaBits = settings.getAlphaBits();
logger.log(Level.FINE, "curAlphaBits: {0}", curAlphaBits);
@@ -237,7 +237,7 @@ private void simulateSkeleton() {
}
}
// ... add virtual tracks if neccessary, for bones that were altered but had no tracks before ...
// ... add virtual tracks if necessary, for bones that were altered but had no tracks before ...
for (Long boneOMA : alteredOmas) {
BoneContext boneContext = blenderContext.getBoneContext(boneOMA);
int boneIndex = skeleton.getBoneIndex(boneContext.getBone());
@@ -37,7 +37,7 @@
/**
* A temporal mesh for curves and surfaces. It works in similar way as TemporalMesh for meshes.
* It prepares all neccessary lines and faces and allows to apply modifiers just like in regular temporal mesh.
* It prepares all necessary lines and faces and allows to apply modifiers just like in regular temporal mesh.
*
* @author Marcin Roguski (Kaelthas)
*/
@@ -210,7 +210,7 @@ private CurvesTemporalMesh(Structure curveStructure, Vector3f scale, boolean loa
}
/**
* The method computes the value of a point at the certain relational distance from its beggining.
* The method computes the value of a point at the certain relational distance from its beginning.
* @param alongRatio
* the relative distance along the curve; should be a value between 0 and 1 inclusive;
* if the value exceeds the boundaries it is truncated to them
@@ -369,7 +369,7 @@ private void loadNurbSurface(Structure nurb, int materialIndex) throws BlenderFi
}
/**
* The method loads the bevel object that sould be applied to curve. It can either be another curve or a generated one
* The method loads the bevel object that should be applied to curve. It can either be another curve or a generated one
* based on the bevel generating parameters in blender.
* @param curveStructure
* the structure with the curve's data (the curve being loaded, NOT the bevel curve)
@@ -707,7 +707,7 @@ private void generateNormals() {
/**
* the method applies scale for the given bevel points. The points table is
* being modified so expect ypur result there.
* being modified so expect your result there.
*
* @param points
* the bevel points
@@ -726,7 +726,7 @@ private void applyScale(Vector3f[] points, Vector3f centerPoint, float scale) {
/**
* A helper class that represents a single bezier line. It consists of Edge's and allows to
* get a subline of a lentgh of the line.
* get a subline of a length of the line.
*
* @author Marcin Roguski (Kaelthas)
*/
@@ -776,7 +776,7 @@ private void recomputeLength() {
}
if (cyclic) {
// if the first vertex is repeated at the end the distance will be = 0 so it won't affect the result, and if it is not repeated
// then it is neccessary to add the length between the last and the first vertex
// then it is necessary to add the length between the last and the first vertex
length += vertices[vertices.length - 1].distance(vertices[0]);
}
}
@@ -834,7 +834,7 @@ private void recomputeLength() {
}
/**
* The method computes the value of a point at the certain relational distance from its beggining.
* The method computes the value of a point at the certain relational distance from its beginning.
* @param alongRatio
* the relative distance along the curve; should be a value between 0 and 1 inclusive;
* if the value exceeds the boundaries it is truncated to them
@@ -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
@@ -32,7 +32,7 @@
package com.jme3.scene.plugins.blender.file;
/**
* An array that can be dynamically modified/
* An array that can be dynamically modified
* @author Marcin Roguski
* @param <T>
* the type of stored data in the array
@@ -42,7 +42,7 @@
/** An array object that holds the required data. */
private T[] array;
/**
* This table holds the sizes of dimetions of the dynamic table. It's length specifies the table dimension or a
* This table holds the sizes of dimensions of the dynamic table. Its length specifies the table dimension or a
* pointer level. For example: if tableSizes.length == 3 then it either specifies a dynamic table of fixed lengths:
* dynTable[a][b][c], where a,b,c are stored in the tableSizes table.
*/
@@ -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
@@ -169,7 +169,7 @@ public Object getFlatFieldValue(String fieldName) {
}
/**
* This methos should be used on structures that are of a 'ListBase' type. It creates a List of structures that are
* This method should be used on structures that are of a 'ListBase' type. It creates a List of structures that are
* held by this structure within the blend file.
* @return a list of filled structures
* @throws BlenderFileException
@@ -232,7 +232,7 @@ public String getFieldType(int fieldIndex) {
}
/**
* This method returns the address of the structure. The strucutre should be filled with data otherwise an exception
* This method returns the address of the structure. The structure should be filled with data otherwise an exception
* is thrown.
* @return the address of the feature stored in this structure
*/
@@ -107,7 +107,7 @@
boolean transparent = false;
if (diffuseColor != null) {
transparent = diffuseColor.a < 1.0f;
if (loadedTextures.size() > 0) {// texutre covers the material color
if (loadedTextures.size() > 0) {// texture covers the material color
diffuseColor.set(1, 1, 1, 1);
}
}
@@ -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
@@ -324,7 +324,7 @@ public Vector3d cross(Vector3d v) {
* the vector to take the cross product of with this.
* @param result
* the vector to store the cross product result.
* @return result, after recieving the cross product vector.
* @return result, after receiving the cross product vector.
*/
public Vector3d cross(Vector3d v, Vector3d result) {
return this.cross(v.x, v.y, v.z, result);
@@ -342,7 +342,7 @@ public Vector3d cross(Vector3d v, Vector3d result) {
* z component of the vector to take the cross product of with this.
* @param result
* the vector to store the cross product result.
* @return result, after recieving the cross product vector.
* @return result, after receiving the cross product vector.
*/
public Vector3d cross(double otherX, double otherY, double otherZ, Vector3d result) {
if (result == null) {
@@ -485,12 +485,12 @@ public Vector3d multLocal(double scalar) {
}
/**
* <code>multLocal</code> multiplies a provided vector to this vector
* <code>multLocal</code> multiplies a provided vector by this vector
* internally, and returns a handle to this vector for easy chaining of
* calls. If the provided vector is null, null is returned.
*
* @param vec
* the vector to mult to this vector.
* the vector to multiply by this vector.
* @return this
*/
public Vector3d multLocal(Vector3d vec) {
@@ -522,7 +522,7 @@ public Vector3d multLocal(double x, double y, double z) {
}
/**
* <code>multLocal</code> multiplies a provided vector to this vector
* <code>multLocal</code> multiplies a provided vector by this vector
* internally, and returns a handle to this vector for easy chaining of
* calls. If the provided vector is null, null is returned.
*
@@ -539,7 +539,7 @@ public Vector3d mult(Vector3d vec) {
}
/**
* <code>multLocal</code> multiplies a provided vector to this vector
* <code>multLocal</code> multiplies a provided vector by this vector
* internally, and returns a handle to this vector for easy chaining of
* calls. If the provided vector is null, null is returned.
*
@@ -657,7 +657,7 @@ public Vector3d subtract(Vector3d vec) {
}
/**
* <code>subtractLocal</code> subtracts a provided vector to this vector
* <code>subtractLocal</code> subtracts a provided vector from this vector
* internally, and returns a handle to this vector for easy chaining of
* calls. If the provided vector is null, null is returned.
*
@@ -825,7 +825,7 @@ public boolean equals(Object o) {
/**
* <code>hashCode</code> returns a unique code for this vector object based
* on it's values. If two vectors are logically equivalent, they will return
* on its values. If two vectors are logically equivalent, they will return
* the same hash code value.
* @return the hash code value of this vector.
*/
@@ -47,7 +47,7 @@
private Set<Integer> verticesOnOriginalEdges = new HashSet<Integer>();
/**
* Constructor loads all neccessary modifier data.
* Constructor loads all necessary modifier data.
* @param modifierStructure
* the modifier structure
* @param blenderContext
@@ -193,7 +193,7 @@ private void subdivideCatmullClark(TemporalMesh temporalMesh) {
// moving the vertex
v.addLocal(t);
// applying crease weight if neccessary
// applying crease weight if necessary
CreasePoint creasePoint = creasePoints.get(i);
if (creasePoint.getTarget() != null && creasePoint.getWeight() != 0) {
t = creasePoint.getTarget().subtractLocal(v).multLocal(creasePoint.getWeight());
@@ -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
@@ -315,7 +315,7 @@ public AffineTransform createAffineTransform(Vector2f[] source, Vector2f[] dest,
* @param pos
* the relative position (value of range <0, 1> (both inclusive))
* @param size
* the size of the line the pixel lies on (width, heigth or
* the size of the line the pixel lies on (width, height or
* depth)
* @return the integer index of the pixel on the line of the specified width
*/
@@ -434,10 +434,10 @@ private void applyColorbandAndColorFactors(Structure tex, Image image, BlenderCo
}
/**
* This method loads the textre from outside the blend file using the
* This method loads the texture from outside the blend file using the
* AssetManager that the blend file was loaded with. It returns a texture
* with a full assetKey that references the original texture so it later
* doesn't need to ba packed when the model data is serialized. It searches
* doesn't need to be packed when the model data is serialized. It searches
* the AssetManager for the full path if the model file is a relative path
* and will attempt to truncate the path if it is an absolute file path
* until the path can be found in the AssetManager. If the texture can not
Oops, something went wrong.

0 comments on commit b159c84

Please sign in to comment.