applyMatrix4 method

LineSegmentsGeometry applyMatrix4(
  1. Matrix4 matrix
)
override

Applies the matrix transform to the geometry.

Implementation

LineSegmentsGeometry applyMatrix4(Matrix4 matrix ) {
	final start = this.attributes['instanceStart'] as InterleavedBufferAttribute?;
	final end = this.attributes['instanceEnd'] as InterleavedBufferAttribute?;

	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;
}