Add helper method to resolve entity scale constraint axis

This commit is contained in:
2026-05-11 13:56:48 +02:00
parent 7e68139523
commit 7128912042

View File

@@ -2993,6 +2993,16 @@ export class ViewportHost {
);
}
private resolveEntityScaleConstraintAxis(
rotation: EntityTransformRotationState,
worldAxis: TransformAxis
): TransformAxis {
return resolveDominantLocalAxisForWorldAxis(
getRotationDegreesFromEntityRotationState(rotation),
worldAxis
);
}
private normalizeDegrees(value: number): number {
const normalized = value % 360;
return normalized < 0 ? normalized + 360 : normalized;