{"size": 247, "ext": "js", "max_stars_repo_path": "dist/math/vec4/Vec4SetLength.js", "max_stars_repo_name": "Mattykins/phaser-1", "max_stars_repo_stars_event_min_datetime": "2020-04-14T14:51:51.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T09:17:36.000Z", "max_issues_repo_path": "dist/math/vec4/Vec4SetLength.js", "max_issues_repo_name": "Mattykins/phaser-1", "max_issues_repo_issues_event_min_datetime": "2020-04-18T06:28:18.000Z", "max_issues_repo_issues_event_max_datetime": "2021-11-12T23:43:43.000Z", "max_forks_repo_path": "dist/math/vec4/Vec4SetLength.js", "max_forks_repo_name": "Mattykins/phaser-1", "max_forks_repo_forks_event_min_datetime": "2020-04-18T08:44:16.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-24T00:49:48.000Z"}
{"max_stars_count": 235, "max_issues_count": 19, "max_forks_count": 25, "avg_line_length": 30.875, "max_line_length": 60, "alphanum_fraction": 0.6882591093}
import { Vec4 } from "./Vec4";
import { Vec4Normalize } from "./Vec4Normalize";
import { Vec4Scale } from "./Vec4Scale";
export function Vec4SetLength(a, length, out = new Vec4()) {
  Vec4Normalize(a, out);
  return Vec4Scale(out, length, out);
}
