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

#wFloat

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

#wxCarbuncle::Point

Returns:



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

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

#wxyCarbuncle::Vector3

Returns:



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

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

#wxyzCarbuncle::Vector4

Returns:



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

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

#wxzCarbuncle::Vector3

Returns:



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

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

#wxzyCarbuncle::Vector4

Returns:



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

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

#wyCarbuncle::Point

Returns:



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

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

#wyxCarbuncle::Vector3

Returns:



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

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

#wyxzCarbuncle::Vector4

Returns:



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

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

#wyzCarbuncle::Vector3

Returns:



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

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

#wyzxCarbuncle::Vector4

Returns:



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

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

#wzCarbuncle::Point

Returns:



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

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

#wzxCarbuncle::Vector3

Returns:



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

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

#wzxyCarbuncle::Vector4

Returns:



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

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

#wzyCarbuncle::Vector3

Returns:



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

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

#xFloat

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

#xwCarbuncle::Point

Returns:



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

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

#xwzyCarbuncle::Vector4

Returns:



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

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

#xyCarbuncle::Point

Returns:



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

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

#xywCarbuncle::Vector3

Returns:



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

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

#xywzCarbuncle::Vector4

Returns:



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

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

#xyzCarbuncle::Vector3

Returns:



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

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

#xyzwCarbuncle::Vector4

Returns:



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

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

#xzCarbuncle::Point

Returns:



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

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

#xzwCarbuncle::Vector3

Returns:



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

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

#xzwyCarbuncle::Vector4

Returns:



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

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

#xzyCarbuncle::Vector3

Returns:



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

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

#yFloat

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

#ywCarbuncle::Point

Returns:



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

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

#ywzxCarbuncle::Vector4

Returns:



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

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

#yxCarbuncle::Point

Returns:



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

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

#yxwCarbuncle::Vector3

Returns:



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

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

#yxwzCarbuncle::Vector4

Returns:



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

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

#yxzCarbuncle::Vector3

Returns:



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

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

#yxzwCarbuncle::Vector4

Returns:



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

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

#yzCarbuncle::Point

Returns:



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

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

#yzwCarbuncle::Vector3

Returns:



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

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

#yzxCarbuncle::Vector3

Returns:



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

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

#yzxwCarbuncle::Vector4

Returns:



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

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

#zFloat

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

#zwCarbuncle::Point

Returns:



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

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

#zwxyCarbuncle::Vector4

Returns:



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

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

#zwyxCarbuncle::Vector4

Returns:



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

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

#zxCarbuncle::Point

Returns:



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

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

#zxwCarbuncle::Vector3

Returns:



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

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

#zxyCarbuncle::Vector3

Returns:



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

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

#zxywCarbuncle::Vector4

Returns:



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

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

#zyCarbuncle::Point

Returns:



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

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

#zywxCarbuncle::Vector4

Returns:



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

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

#zyxwCarbuncle::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

#inspectObject



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

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

#sizeObject



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

def size
  4
end

#to_aObject



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

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