Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Slang Documentation
Slang Documentation
Back to top
View this page

dst¶

Description¶

Helper for computing distance terms for lighting (obsolete). Use the subtraction operator ‘-’ instead.

Signature¶

vector<T, 4> dst<T>(
    vector<T, 4> x,
    vector<T, 4> y)
    where T : __BuiltinFloatingPointType;

Generic Parameters¶

T: __BuiltinFloatingPointType¶

Parameters¶

x : vector<T, 4>¶

y : vector<T, 4>¶

On this page
  • dst
    • Description
    • Signature
    • Generic Parameters
      • T: __BuiltinFloatingPointType
    • Parameters
      • x : vector<T, 4>
      • y : vector<T, 4>