Module: TT::UVQ

Defined in:
TT_Lib2/uvq.rb

Overview

Collection of Group, ComponentInstnace and Image methods.

Since:

  • 2.1.0

Class Method Summary collapse

Class Method Details

.normalize(uvq) ⇒ Array Also known as: flatten

Parameters:

  • uvq (Array)

Returns:

  • (Array)

Since:

  • 2.1.0



23
24
25
# File 'TT_Lib2/uvq.rb', line 23

def self.normalize(uvq)
  Geom::Point3d.new(uvq.x / uvq.z, uvq.y / uvq.z, 1.0)
end