Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cochrane committed Feb 19, 2023
1 parent 2255a91 commit b43e695
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GLLara/GLLConnexionManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ - (simd_float3)averagePosition {
result += device.lastPositionState;
}
float factor = 1.0f / fmaxf((float) knownDevices.count, 1.0f);
return result /= simd_make_float3(factor, factor, factor);
return result / simd_make_float3(factor, factor, factor);
}

- (simd_float3)averageRotation {
Expand All @@ -254,7 +254,7 @@ - (simd_float3)averageRotation {
result += device.lastRotationState;
}
float factor = 1.0f / fmaxf((float) knownDevices.count, 1.0f);
return result /= simd_make_float3(factor, factor, factor);
return result / simd_make_float3(factor, factor, factor);
}

@end

0 comments on commit b43e695

Please sign in to comment.