Class: Quake::Bsp::Plane
- Inherits:
-
Data
- Object
- Data
- Quake::Bsp::Plane
- Defined in:
- lib/quake/bsp/types.rb
Instance Attribute Summary collapse
-
#dist ⇒ Object
readonly
Returns the value of attribute dist.
-
#normal ⇒ Object
readonly
Returns the value of attribute normal.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#dist ⇒ Object (readonly)
Returns the value of attribute dist
13 14 15 |
# File 'lib/quake/bsp/types.rb', line 13 def dist @dist end |
#normal ⇒ Object (readonly)
Returns the value of attribute normal
13 14 15 |
# File 'lib/quake/bsp/types.rb', line 13 def normal @normal end |
#type ⇒ Object (readonly)
Returns the value of attribute type
13 14 15 |
# File 'lib/quake/bsp/types.rb', line 13 def type @type end |
Instance Method Details
#signbits ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/quake/bsp/types.rb', line 14 def signbits bits = 0 bits |= 1 if normal.x.negative? bits |= 2 if normal.y.negative? bits |= 4 if normal.z.negative? bits end |