Method: CGLM::Base#initialize_dup

Defined in:
lib/cglm/base.rb

#initialize_dup(other) ⇒ Object



33
34
35
36
37
# File 'lib/cglm/base.rb', line 33

def initialize_dup(other)
  super
  @addr = CGLM.alloc(self.class)
  other.copy_to(self)
end