Skip to content

Commit b7bc822

Browse files
committed
Remove unused variables and math
1 parent 7acf854 commit b7bc822

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

Assets/MixedRealityToolkit.Providers/WindowsMixedReality/XR2018/WindowsMixedRealityArticulatedHand.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,6 @@ protected void InitializeUVs(Vector3[] neutralPoseVertices)
171171
float minY = neutralPoseVertices[0].y;
172172
float maxY = minY;
173173

174-
float maxMagnitude = 0.0f;
175-
176174
for (int ix = 1; ix < neutralPoseVertices.Length; ix++)
177175
{
178176
Vector3 p = neutralPoseVertices[ix];
@@ -185,11 +183,8 @@ protected void InitializeUVs(Vector3[] neutralPoseVertices)
185183
{
186184
maxY = p.y;
187185
}
188-
float d = p.x * p.x + p.y * p.y;
189-
if (d > maxMagnitude) maxMagnitude = d;
190186
}
191187

192-
maxMagnitude = Mathf.Sqrt(maxMagnitude);
193188
float scale = 1.0f / (maxY - minY);
194189

195190
handMeshUVs = new Vector2[neutralPoseVertices.Length];

Assets/MixedRealityToolkit.Providers/WindowsMixedReality/XRSDK/Controllers/WindowsMixedRealityXRSDKArticulatedHand.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ protected void InitializeUVs(Vector3[] neutralPoseVertices)
7575
{
7676
maxY = p.y;
7777
}
78-
float d = p.x * p.x + p.y * p.y;
7978
}
8079

8180
float scale = 1.0f / (maxY - minY);

0 commit comments

Comments
 (0)