Class: Carbuncle::Vector4

Inherits:
Object show all
Extended by:
Carbuncle::Vectorizable::ClassMethods
Includes:
Vectorizable
Defined in:
gems/carbuncle-math/mrblib/vector4.rb,
gems/carbuncle-math/mrblib/000-vectorizable.rb

Overview

Represents a point in fourth dimensional space.

Constant Summary

Constants included from Vectorizable

Carbuncle::Vectorizable::CLASS

Constants included from Enumerable

Enumerable::NONE

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Carbuncle::Vectorizable::ClassMethods

vectorize_properties

Methods included from Vectorizable

#%, #*, #**, #+, #-, #-@, #/, #<<, #>>, #[], #[]=, #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

#w ⇒ Float

The w value of the vector.

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#wx ⇒ Carbuncle::Point

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#wxy ⇒ Carbuncle::Vector3

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#wxyz ⇒ Carbuncle::Vector4

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#wxz ⇒ Carbuncle::Vector3

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#wxzy ⇒ Carbuncle::Vector4

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#wy ⇒ Carbuncle::Point

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#wyx ⇒ Carbuncle::Vector3

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#wyxz ⇒ Carbuncle::Vector4

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#wyz ⇒ Carbuncle::Vector3

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#wyzx ⇒ Carbuncle::Vector4

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#wz ⇒ Carbuncle::Point

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#wzx ⇒ Carbuncle::Vector3

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#wzxy ⇒ Carbuncle::Vector4

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#wzy ⇒ Carbuncle::Vector3

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#x ⇒ Float

The x value of the vector.

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#xw ⇒ Carbuncle::Point

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#xwzy ⇒ Carbuncle::Vector4

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#xy ⇒ Carbuncle::Point

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#xyw ⇒ Carbuncle::Vector3

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#xywz ⇒ Carbuncle::Vector4

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#xyz ⇒ Carbuncle::Vector3

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#xyzw ⇒ Carbuncle::Vector4

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#xz ⇒ Carbuncle::Point

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#xzw ⇒ Carbuncle::Vector3

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#xzwy ⇒ Carbuncle::Vector4

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#xzy ⇒ Carbuncle::Vector3

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#y ⇒ Float

The y value of the vector.

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#yw ⇒ Carbuncle::Point

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#ywzx ⇒ Carbuncle::Vector4

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#yx ⇒ Carbuncle::Point

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#yxw ⇒ Carbuncle::Vector3

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#yxwz ⇒ Carbuncle::Vector4

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#yxz ⇒ Carbuncle::Vector3

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#yxzw ⇒ Carbuncle::Vector4

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#yz ⇒ Carbuncle::Point

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#yzw ⇒ Carbuncle::Vector3

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#yzx ⇒ Carbuncle::Vector3

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#yzxw ⇒ Carbuncle::Vector4

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#z ⇒ Float

The z value of the vector.

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#zw ⇒ Carbuncle::Point

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#zwxy ⇒ Carbuncle::Vector4

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#zwyx ⇒ Carbuncle::Vector4

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#zx ⇒ Carbuncle::Point

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#zxw ⇒ Carbuncle::Vector3

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#zxy ⇒ Carbuncle::Vector3

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#zxyw ⇒ Carbuncle::Vector4

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#zy ⇒ Carbuncle::Point

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#zywx ⇒ Carbuncle::Vector4

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#zyxw ⇒ Carbuncle::Vector4

Returns:



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

Instance Method Details

#inspect ⇒ Object



122
123
124
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 122

def inspect
  "Vector4(#{x}, #{y}, #{z}, #{w})"
end

#size ⇒ Object



126
127
128
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 126

def size
  4
end

#to_a ⇒ Object



130
131
132
# File 'gems/carbuncle-math/mrblib/vector4.rb', line 130

def to_a
  [x, y, z, w]
end