Class: Quake::Mdl::Vertex
- Inherits:
-
Data
- Object
- Data
- Quake::Mdl::Vertex
- Defined in:
- lib/quake/mdl/types.rb
Overview
Compressed vertex: 3 bytes position + 1 byte normal index
Instance Attribute Summary collapse
-
#normal_index ⇒ Object
readonly
Returns the value of attribute normal_index.
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
-
#z ⇒ Object
readonly
Returns the value of attribute z.
Instance Attribute Details
#normal_index ⇒ Object (readonly)
Returns the value of attribute normal_index
6 7 8 |
# File 'lib/quake/mdl/types.rb', line 6 def normal_index @normal_index end |
#x ⇒ Object (readonly)
Returns the value of attribute x
6 7 8 |
# File 'lib/quake/mdl/types.rb', line 6 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y
6 7 8 |
# File 'lib/quake/mdl/types.rb', line 6 def y @y end |
#z ⇒ Object (readonly)
Returns the value of attribute z
6 7 8 |
# File 'lib/quake/mdl/types.rb', line 6 def z @z end |