Class: Carbuncle::Vector3
Overview
Represents a point in three dimensional space.
Constant Summary
Carbuncle::Vectorizable::CLASS
Constants included
from Enumerable
Enumerable::NONE
Instance Attribute Summary collapse
Instance Method Summary
collapse
vectorize_properties
#%, #*, #**, #+, #-, #-@, #/, #<<, #>>, #[], #[]=, #each, #length, #to_s
Methods included from Enumerable
__update_hash, #all?, #any?, #chain, #collect, #count, #cycle, #detect, #drop, #drop_while, #each_cons, #each_slice, #each_with_index, #each_with_object, #entries, #filter_map, #find_all, #find_index, #first, #flat_map, #grep, #group_by, #hash, #include?, #inject, #lazy, #max, #max_by, #min, #min_by, #minmax, #minmax_by, #none?, #one?, #partition, #reject, #reverse_each, #sort, #sort_by, #sum, #take, #take_while, #tally, #to_h, #uniq, #zip
Instance Attribute Details
The x value of the vector.
45
46
47
|
# File 'gems/carbuncle-math/mrblib/vector3.rb', line 45
def inspect
"Vector3(#{x}, #{y}, #{z})"
end
|
45
46
47
|
# File 'gems/carbuncle-math/mrblib/vector3.rb', line 45
def inspect
"Vector3(#{x}, #{y}, #{z})"
end
|
45
46
47
|
# File 'gems/carbuncle-math/mrblib/vector3.rb', line 45
def inspect
"Vector3(#{x}, #{y}, #{z})"
end
|
45
46
47
|
# File 'gems/carbuncle-math/mrblib/vector3.rb', line 45
def inspect
"Vector3(#{x}, #{y}, #{z})"
end
|
45
46
47
|
# File 'gems/carbuncle-math/mrblib/vector3.rb', line 45
def inspect
"Vector3(#{x}, #{y}, #{z})"
end
|
The y value of the vector.
45
46
47
|
# File 'gems/carbuncle-math/mrblib/vector3.rb', line 45
def inspect
"Vector3(#{x}, #{y}, #{z})"
end
|
45
46
47
|
# File 'gems/carbuncle-math/mrblib/vector3.rb', line 45
def inspect
"Vector3(#{x}, #{y}, #{z})"
end
|
45
46
47
|
# File 'gems/carbuncle-math/mrblib/vector3.rb', line 45
def inspect
"Vector3(#{x}, #{y}, #{z})"
end
|
45
46
47
|
# File 'gems/carbuncle-math/mrblib/vector3.rb', line 45
def inspect
"Vector3(#{x}, #{y}, #{z})"
end
|
45
46
47
|
# File 'gems/carbuncle-math/mrblib/vector3.rb', line 45
def inspect
"Vector3(#{x}, #{y}, #{z})"
end
|
The z value of the vector.
45
46
47
|
# File 'gems/carbuncle-math/mrblib/vector3.rb', line 45
def inspect
"Vector3(#{x}, #{y}, #{z})"
end
|
45
46
47
|
# File 'gems/carbuncle-math/mrblib/vector3.rb', line 45
def inspect
"Vector3(#{x}, #{y}, #{z})"
end
|
45
46
47
|
# File 'gems/carbuncle-math/mrblib/vector3.rb', line 45
def inspect
"Vector3(#{x}, #{y}, #{z})"
end
|
45
46
47
|
# File 'gems/carbuncle-math/mrblib/vector3.rb', line 45
def inspect
"Vector3(#{x}, #{y}, #{z})"
end
|
Instance Method Details
45
46
47
|
# File 'gems/carbuncle-math/mrblib/vector3.rb', line 45
def inspect
"Vector3(#{x}, #{y}, #{z})"
end
|
49
50
51
|
# File 'gems/carbuncle-math/mrblib/vector3.rb', line 49
def size
3
end
|
53
54
55
|
# File 'gems/carbuncle-math/mrblib/vector3.rb', line 53
def to_a
[x, y, z]
end
|