SLEW(nged)

shift the view center by a vector in view space

πŸ“… published 7.44.0, from nixpkgs unstable

πŸ’… SLEW πŸ’…

okay bestie, this is the nged page from BRL-CAD User Commands, and we’re talking about slew β€” the little shift of your view center that has serious main-character energy. 🫢

✨ NAME ✨

slew β€” shift the view center by a vector in view space. also answers to sv and vslew, iykyk. πŸ’…

🌸 SYNOPSIS 🌸

slew x y [z]
slew "x y [z]"
sv x y [z]
vslew x y [z]

πŸ¦‹ DESCRIPTION πŸ¦‹

The slew command (also available as sv and vslew) shifts the view center by a displacement vector specified in view coordinates. The view is panned by the given amounts in X, Y, and optionally Z. This is distinct from setting an absolute view position β€” the displacement is relative to the current view center. periodt. πŸ’–

The vector may be specified as two or three separate floating-point arguments, or as a single quoted space-separated string. In all cases, if the Z component is omitted or not provided in the string, it defaults to 0.0.

View coordinates are in normalized view space: (0, 0) is the view center, and the extents are typically ±1 in each axis depending on the current view scale. Slewing by (1, 0) pans the view by one view-space unit to the right. slay. ✨

πŸŽ€ Input forms πŸŽ€

  • slew x y or slew x y z: Three (or two) separate floating-point arguments. πŸ’¬
  • slew "x y" or slew "x y z": A single quoted space-separated string of two or three values. πŸŽ€

πŸ”₯ EXAMPLES πŸ”₯

Example 1. Pan the view right and up

mged> slew 0.5 0.25

Shifts the view center 0.5 units to the right and 0.25 units upward in view space. Z defaults to 0. πŸ‘‘

Example 2. Slew using the sv alias

mged> sv -0.1 0 0.05

Pans the view left by 0.1 and shifts it slightly toward the viewer (+Z in view space) by 0.05. Uses the short sv alias. πŸ’…

Example 3. Slew using a quoted triplet

mged> slew "0.2 -0.3 0"

Shifts the view center using a single quoted string input β€” convenient for scripting. 🧚

πŸ‘‘ AUTHOR πŸ‘‘

BRL-CAD Team β€” the whole squad. πŸ’œ

πŸ› BUG REPORTS πŸ›

Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. please do that instead of suffering in silence, bestie 😭


source/version: BRL-CAD Β· date: not listed on this page Β· SLEW(nged) says bye, bestie πŸ’…

πŸ“¦ where this page comes from