Feature #10352 » give_alias_for_vector_product.patch
lib/matrix.rb | ||
---|---|---|
}
|
||
p
|
||
end
|
||
alias :dot :inner_product
|
||
#
|
||
# Returns the cross product of this vector with the other.
|
||
... | ... | |
v[0]*@elements[2] - v[2]*@elements[0],
|
||
v[1]*@elements[0] - v[0]*@elements[1] ]
|
||
end
|
||
alias :cross :cross_product
|
||
#
|
||
# Like Array#collect.
|
- « Previous
- 1
- 2
- Next »