mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 13:30:33 +02:00
Fix Style
- Replace tabs by 4 spaces; - Add indents and spaces; - Formated multi/line statement - Removed out-of-scope comments.
This commit is contained in:
parent
19de579057
commit
fcde85e51b
1 changed files with 142 additions and 141 deletions
|
@ -2670,14 +2670,16 @@ SelectionDisplay = (function() {
|
|||
var scaledOffsetWorld = vec3Mult(initialDimensions, offsetRP);
|
||||
|
||||
pickRayPosition = Vec3.sum(initialPosition, Vec3.multiplyQbyV(rotation, scaledOffsetWorld));
|
||||
// Scaled offset in world coordinates for 3D manipulation
|
||||
|
||||
if (directionFor3DStretch) {
|
||||
// Scale pivot to be in the same range as registrationPoint
|
||||
// pivot, offset and pickPlanePosition for 3D manipulation
|
||||
var scaledPivot3D = Vec3.multiply(0.5, Vec3.multiply(1.0, directionFor3DStretch));
|
||||
deltaPivot3D = Vec3.subtract(centeredRP, scaledPivot3D);
|
||||
|
||||
var scaledOffsetWorld3D = vec3Mult(initialDimensions,
|
||||
Vec3.subtract(Vec3.multiply(0.5, Vec3.multiply(-1.0, directionFor3DStretch)), centeredRP));
|
||||
Vec3.subtract(Vec3.multiply(0.5, Vec3.multiply(-1.0, directionFor3DStretch)),
|
||||
centeredRP));
|
||||
|
||||
pickRayPosition3D = Vec3.sum(initialPosition, Vec3.multiplyQbyV(rotation, scaledOffsetWorld));
|
||||
}
|
||||
var start = null;
|
||||
|
@ -2846,7 +2848,6 @@ SelectionDisplay = (function() {
|
|||
|
||||
vector = Vec3.multiplyQbyV(Quat.inverse(rotation), vector);
|
||||
|
||||
// Range of Motion
|
||||
if (distanceFor3DStretch > DISTANCE_INFLUENCE_THRESHOLD) {
|
||||
// Range of Motion
|
||||
vector = Vec3.multiply(distanceFor3DStretch , vector);
|
||||
|
|
Loading…
Reference in a new issue