Class: Quake::Mdl::Vertex

Inherits:
Data
  • Object
show all
Defined in:
lib/quake/mdl/types.rb

Overview

Compressed vertex: 3 bytes position + 1 byte normal index

Instance Attribute Summary collapse

Instance Attribute Details

#normal_indexObject (readonly)

Returns the value of attribute normal_index

Returns:

  • (Object)

    the current value of normal_index



6
7
8
# File 'lib/quake/mdl/types.rb', line 6

def normal_index
  @normal_index
end

#xObject (readonly)

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x



6
7
8
# File 'lib/quake/mdl/types.rb', line 6

def x
  @x
end

#yObject (readonly)

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y



6
7
8
# File 'lib/quake/mdl/types.rb', line 6

def y
  @y
end

#zObject (readonly)

Returns the value of attribute z

Returns:

  • (Object)

    the current value of z



6
7
8
# File 'lib/quake/mdl/types.rb', line 6

def z
  @z
end