Skip to content
2 changes: 2 additions & 0 deletions src/traces/pointcloud/convert.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ proto.updateFast = function(options) {
if(xy) {

positions = xy;

// dividing xy.length by 2 and truncating to integer if xy.length was not even
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you very much!

len = xy.length >>> 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bitwise ops are cool 😎 but can you add a short comment above describing what this does (for folks unfamiliar with them).


if(userBounds) {
Expand Down