Class: Three::Raycaster::Intersection

Inherits:
Object
  • Object
show all
Defined in:
lib/three/core/raycaster.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#distanceObject (readonly)

Returns the value of attribute distance.



10
11
12
# File 'lib/three/core/raycaster.rb', line 10

def distance
  @distance
end

#face_indexObject (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

#indexObject (readonly)

Returns the value of attribute index.



10
11
12
# File 'lib/three/core/raycaster.rb', line 10

def index
  @index
end

#instance_idObject (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

#objectObject (readonly)

Returns the value of attribute object.



10
11
12
# File 'lib/three/core/raycaster.rb', line 10

def object
  @object
end

#object_handleObject (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

#pointObject (readonly)

Returns the value of attribute point.



10
11
12
# File 'lib/three/core/raycaster.rb', line 10

def point
  @point
end

#rawObject (readonly)

Returns the value of attribute raw.



10
11
12
# File 'lib/three/core/raycaster.rb', line 10

def raw
  @raw
end

#uvObject (readonly)

Returns the value of attribute uv.



10
11
12
# File 'lib/three/core/raycaster.rb', line 10

def uv
  @uv
end