Skip to content

⬅️ Back to Table of Contents

📄 Packing.js

📊 Analysis Summary

Metric Count
🔧 Functions 2
📦 Imports 1

📚 Table of Contents

🛠️ File Location:

📂 src/nodes/utils/Packing.js

📦 Imports

Name Source
nodeObject ../tsl/TSLBase.js

Functions

directionToColor(node: any): any

Parameters:

  • node any

Returns: any

Calls:

  • nodeObject( node ).mul( 0.5 ).add
Code
( node ) => nodeObject( node ).mul( 0.5 ).add( 0.5 )

colorToDirection(node: any): any

Parameters:

  • node any

Returns: any

Calls:

  • nodeObject( node ).mul( 2.0 ).sub
Code
( node ) => nodeObject( node ).mul( 2.0 ).sub( 1 )