Vector (Class)

In: Geodesic.rb
basiclibrary.rb
Parent: Object

Extensions to the Vector class

Methods

/   cross   normalize!   normalized   normalized   r=   scale_by!  

External Aliases

inner_product -> dot

Public Instance methods

Divide the vector by a scalar Scales the values in the Vector by 1.0 / n, and returns the new Vector

Returns the cross product of two 3D vectors

Modify the receiving vector to be of length (.r) 1.0

Returns a Vector whose length (.r) is 1.0

Modify the receiving vector, scaling it to be the specified length

Modify the receiving vector, multiplying each component by the specified factor

[Validate]