Class: Assimp::Native::Matrix4x4

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/assimp/native/types.rb,
lib/assimp/native/generated.rb

Constant Summary collapse

FIELDS =
%i[a1 a2 a3 a4 b1 b2 b3 b4 c1 c2 c3 c4 d1 d2 d3 d4].freeze
COLUMN_MAJOR_FIELDS =
%i[a1 b1 c1 d1 a2 b2 c2 d2 a3 b3 c3 d3 a4 b4 c4 d4].freeze

Instance Method Summary collapse

Instance Method Details

#to_column_majorObject



38
39
40
# File 'lib/assimp/native/types.rb', line 38

def to_column_major
  COLUMN_MAJOR_FIELDS.map { |field| self[field] }
end