Class: Three::Raycaster::Intersection
- Inherits:
-
Object
- Object
- Three::Raycaster::Intersection
- Defined in:
- lib/three/core/raycaster.rb
Instance Attribute Summary collapse
-
#distance ⇒ Object
readonly
Returns the value of attribute distance.
-
#face_index ⇒ Object
readonly
Returns the value of attribute face_index.
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#instance_id ⇒ Object
readonly
Returns the value of attribute instance_id.
-
#object ⇒ Object
readonly
Returns the value of attribute object.
-
#object_handle ⇒ Object
readonly
Returns the value of attribute object_handle.
-
#point ⇒ Object
readonly
Returns the value of attribute point.
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
-
#uv ⇒ Object
readonly
Returns the value of attribute uv.
Instance Method Summary collapse
-
#initialize(distance:, point:, object:, object_handle:, uv: nil, face_index: nil, index: nil, instance_id: nil, raw: nil) ⇒ Intersection
constructor
A new instance of Intersection.
Constructor Details
#initialize(distance:, point:, object:, object_handle:, uv: nil, face_index: nil, index: nil, instance_id: nil, raw: nil) ⇒ Intersection
Returns a new instance of Intersection.
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/three/core/raycaster.rb', line 12 def initialize(distance:, point:, object:, object_handle:, uv: nil, face_index: nil, index: nil, instance_id: nil, raw: nil) @distance = distance @point = point @object = object @object_handle = object_handle @uv = uv @face_index = face_index @index = index @instance_id = instance_id @raw = raw end |
Instance Attribute Details
#distance ⇒ Object (readonly)
Returns the value of attribute distance.
10 11 12 |
# File 'lib/three/core/raycaster.rb', line 10 def distance @distance end |
#face_index ⇒ Object (readonly)
Returns the value of attribute face_index.
10 11 12 |
# File 'lib/three/core/raycaster.rb', line 10 def face_index @face_index end |
#index ⇒ Object (readonly)
Returns the value of attribute index.
10 11 12 |
# File 'lib/three/core/raycaster.rb', line 10 def index @index end |
#instance_id ⇒ Object (readonly)
Returns the value of attribute instance_id.
10 11 12 |
# File 'lib/three/core/raycaster.rb', line 10 def instance_id @instance_id end |
#object ⇒ Object (readonly)
Returns the value of attribute object.
10 11 12 |
# File 'lib/three/core/raycaster.rb', line 10 def object @object end |
#object_handle ⇒ Object (readonly)
Returns the value of attribute object_handle.
10 11 12 |
# File 'lib/three/core/raycaster.rb', line 10 def object_handle @object_handle end |
#point ⇒ Object (readonly)
Returns the value of attribute point.
10 11 12 |
# File 'lib/three/core/raycaster.rb', line 10 def point @point end |
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
10 11 12 |
# File 'lib/three/core/raycaster.rb', line 10 def raw @raw end |
#uv ⇒ Object (readonly)
Returns the value of attribute uv.
10 11 12 |
# File 'lib/three/core/raycaster.rb', line 10 def uv @uv end |