applyMatrix4 method

LineSegmentsGeometry applyMatrix4(
  1. Matrix4 matrix
)
override

Implementation

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

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

    end.applyMatrix4(matrix);

    start.needsUpdate = true;
  }

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

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

  return this;
}