TwoArrayVector
(Class)
In:
utilities/smallMatrixVector.rb
Parent:
Object
Methods
*
+
-
<=>
[]
[]=
add
coords
coords=
dot
magnitude
magnitudeSquared
new
normalize
subtract
times
to_s
x
x
Attributes
e0
[RW]
e1
[RW]
Public Class methods
new
(incoords)
Public Instance methods
*
(scalar)
+
(otherPoint)
-
(otherPoint)
<=>
otherPoint
[]
(i)
[]=
(i , num)
add
(otherPoint)
coords
()
coords=
(arr)
dot
(otherPoint)
magnitude
()
magnitudeSquared
()
normalize
()
subtract
(otherPoint)
times
(scalar)
to_s
()
x
(otherPoint)
x
(otherPoint)
[Validate]