From 89756c1398f7cb842a9a5edc793fd88f56e8d23d Mon Sep 17 00:00:00 2001 From: Shehzan Mohammed Date: Thu, 12 Jan 2017 15:38:36 -0500 Subject: [PATCH] Typo/format fixes --- Source/Core/EllipseGeometry.js | 4 ++-- Source/Core/PolygonGeometry.js | 6 +++--- Source/Core/RectangleGeometry.js | 6 +++--- Specs/Core/GeometryPipelineSpec.js | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Source/Core/EllipseGeometry.js b/Source/Core/EllipseGeometry.js index 462876a203e0..2d852629caba 100644 --- a/Source/Core/EllipseGeometry.js +++ b/Source/Core/EllipseGeometry.js @@ -181,7 +181,7 @@ define([ bitangents[i1] = bitangent.y; bitangents[i2] = bitangent.z; if (extrude) { - bitangents[i + bottomOffset] = bitangent.x; + bitangents[i + bottomOffset] = bitangent.x; bitangents[i1 + bottomOffset] = bitangent.y; bitangents[i2 + bottomOffset] = bitangent.z; } @@ -501,7 +501,7 @@ define([ bitangents[i1] = bitangent.y; bitangents[i2] = bitangent.z; - bitangents[i + length] = bitangent.x; + bitangents[i + length] = bitangent.x; bitangents[i1 + length] = bitangent.y; bitangents[i2 + length] = bitangent.z; } diff --git a/Source/Core/PolygonGeometry.js b/Source/Core/PolygonGeometry.js index 18574458d2f3..1eb5e667d245 100644 --- a/Source/Core/PolygonGeometry.js +++ b/Source/Core/PolygonGeometry.js @@ -303,17 +303,17 @@ define([ if (vertexFormat.bitangent) { if (bottom) { - bitangents[attrIndex + bottomOffset] = bitangent.x; + bitangents[attrIndex + bottomOffset] = bitangent.x; bitangents[attrIndex1 + bottomOffset] = bitangent.y; bitangents[attrIndex2 + bottomOffset] = bitangent.z; } if (top) { if (perPositionHeight) { - bitangents[attrIndex ] = scratchPerPosBitangent.x; + bitangents[attrIndex] = scratchPerPosBitangent.x; bitangents[attrIndex1] = scratchPerPosBitangent.y; bitangents[attrIndex2] = scratchPerPosBitangent.z; } else { - bitangents[attrIndex ] = bitangent.x; + bitangents[attrIndex] = bitangent.x; bitangents[attrIndex1] = bitangent.y; bitangents[attrIndex2] = bitangent.z; } diff --git a/Source/Core/RectangleGeometry.js b/Source/Core/RectangleGeometry.js index b9fbba1e0884..b6ff9ce78201 100644 --- a/Source/Core/RectangleGeometry.js +++ b/Source/Core/RectangleGeometry.js @@ -126,17 +126,17 @@ define([ } if (vertexFormat.normal) { - normals[attrIndex ] = normal.x; + normals[attrIndex] = normal.x; normals[attrIndex1] = normal.y; normals[attrIndex2] = normal.z; } if (vertexFormat.tangent) { - tangents[attrIndex ] = tangent.x; + tangents[attrIndex] = tangent.x; tangents[attrIndex1] = tangent.y; tangents[attrIndex2] = tangent.z; } if (vertexFormat.bitangent) { - bitangents[attrIndex ] = bitangent.x; + bitangents[attrIndex] = bitangent.x; bitangents[attrIndex1] = bitangent.y; bitangents[attrIndex2] = bitangent.z; } diff --git a/Specs/Core/GeometryPipelineSpec.js b/Specs/Core/GeometryPipelineSpec.js index 17eff035cb57..31005ab93ec2 100644 --- a/Specs/Core/GeometryPipelineSpec.js +++ b/Specs/Core/GeometryPipelineSpec.js @@ -1632,7 +1632,7 @@ defineSuite([ -0.4082482904638631, -0.8164965809277261, 0.4082482904638631], CesiumMath.EPSILON7); }); - it ('computeTangentAndBitangent computes tangent and bitangent for an BoxGeometry', function() { + it ('computeTangentAndBitangent computes tangent and bitangent for BoxGeometry', function() { var geometry = BoxGeometry.createGeometry(new BoxGeometry({ vertexFormat : new VertexFormat({ position : true, @@ -1668,7 +1668,7 @@ defineSuite([ } }); - it ('computeBinormalAndTangent computes tangent and binormal for an BoxGeometry', function() { + it ('computeBinormalAndTangent computes tangent and binormal for BoxGeometry', function() { // This test is for the deprecated computeBinormalAndTangent API // It tests to assert that the binormal attribute is set correctly and // is a copy of the bitangent attribute