Module MAPLEAF.Motion.CythonVector

Classes

class Vector (...)

Can be initialized by passing in three numeric components or a single string (ex: "(0, 1, 2)" ) containing numeric values separated by ', ' or ' ', or ';', or '; ' and enclosed by () or {} or [] or no brackets. To initialize from an iterable, unpack the iterable into the constructor with an asterisk: a = np.array([1,2,3]) b = Vector(*a)

Subclasses

Instance variables

var X

Return an attribute of instance, which is of type owner.

var Y

Return an attribute of instance, which is of type owner.

var Z

Return an attribute of instance, which is of type owner.

Methods

def angle(...)

Returns the angle between two vectors, always <= 180 degrees

def crossProduct(...)
def length(...)
def normalize(...)

Returns a unit vector pointing in the same direction as the current Vector