skspatial.objects.Vector

Methods

angle_between(other)

Return the angle in radians between the vector and another.

angle_signed(other)

Return the signed angle in radians between the vector and another.

angle_signed_3d(other, direction_positive)

Return the signed angle in radians between the vector and another.

cosine_similarity(other)

Return the cosine similarity of the vector with another.

cross(other)

Compute the cross product with another vector.

different_direction(**kwargs)

Return a simple vector that is in a different direction.

from_points(point_a, point_b)

Instantiate a vector from point A to point B.

is_parallel(other, **kwargs)

Check if the vector is parallel to another.

is_perpendicular(other, **kwargs)

Check if the vector is perpendicular to another.

is_zero(**kwargs)

Check if the vector is the zero vector.

norm(**kwargs)

Return the norm of the vector.

plot_2d(ax_2d[, point, scalar])

Plot a 2D vector.

plot_3d(ax_3d[, point, scalar])

Plot a 3D vector.

project_vector(other)

Project an other vector onto the vector.

scalar_projection(other)

Return the scalar projection of an other vector onto the vector.

side_vector(other)

Find the side of the vector where another vector is directed.

unit()

Return the unit vector in the same direction as the vector.