AABB copyWith({ Vec2? position, double? width, double? height, }) { return AABB( position: position ?? this.position, width: width ?? this.width, height: height ?? this.height, ); }