EasyGeometry::D2::Vector
A vector in a 2-dimensional Euclidean space.
#==(vector)
Compare self and other Vector. Return False
unless vector is aEasyGeometry::D2::Vector
.
#-(vector)
Subtraction of two vectors
.
#orthogonal_direction
Returns a non-zero vector
that is orthogonal to the line containing self
and the origin
.
#cross_product(vector)
It is positive
if other vector should be turned counter-clockwise in order to superpose them.
It is negative
if other vector should be turned clockwise in order to superpose them.
It is zero
when vectors are collinear.
#dot(vector)
Dot product, also known as inner product or scalar product.
#to_point
Converts the vector
to a point
.
Last updated
Was this helpful?