applyMatrix4 method

  1. @override
LineSegmentsGeometry applyMatrix4(
  1. Matrix4 matrix
)
override

Implementation

@override
LineSegmentsGeometry applyMatrix4(matrix) {
  var start = attributes["instanceStart"];
  var end = attributes["instanceEnd"];

  if (start != null) {
    start.applyMatrix4(matrix);

    end.applyMatrix4(matrix);

    start.needsUpdate = true;
  }

  if (boundingBox != null) {
    computeBoundingBox();
  }

  if (boundingSphere != null) {
    computeBoundingSphere();
  }

  return this;
}