1
0
Fork 0

fix(brian): Calculate shoulder from HPS, not cbHPS

This commit is contained in:
Joost De Cock 2020-05-30 12:16:52 +02:00
parent c6fc072b26
commit 803dd112ed

View file

@ -30,10 +30,11 @@ export default (part) => {
(measurements.neckCircumference * (1 + options.collarEase)) / options.collarFactor,
0
)
points.hps = points.neck.clone() // We started using HPS in many measurements
// Shoulder point using shoulderSlope degree measurement
points.shoulder = utils.beamsIntersect(
points.cbHps,
points.cbHps.shift(measurements.shoulderSlope * -1, 100),
points.hps,
points.hps.shift(measurements.shoulderSlope * -1, 100),
new Point(measurements.shoulderToShoulder / 2 + store.get('shoulderEase'), -100),
new Point(measurements.shoulderToShoulder / 2 + store.get('shoulderEase'), 100)
)