sierra.core.vector
Representation of vectors in 3D space and operations on them..
Vector3D
: Represents a point in 3D space and/or a directional vector in 3D space.
- class sierra.core.vector.Vector3D(x=0, y=0, z=0)[source]
Represents a point in 3D space and/or a directional vector in 3D space.
Inheritance
- __dict__ = mappingproxy({'__module__': 'sierra.core.vector', '__doc__': 'Represents a point in 3D space and/or a directional vector in 3D space.\n\n ', 'from_str': <staticmethod object>, 'd2norm': <staticmethod object>, '__init__': <function Vector3D.__init__>, '__eq__': <function Vector3D.__eq__>, '__hash__': <function Vector3D.__hash__>, '__len__': <function Vector3D.__len__>, '__add__': <function Vector3D.__add__>, '__sub__': <function Vector3D.__sub__>, '__mul__': <function Vector3D.__mul__>, '__truediv__': <function Vector3D.__truediv__>, '__iadd__': <function Vector3D.__iadd__>, '__isub__': <function Vector3D.__isub__>, '__ge__': <function Vector3D.__ge__>, '__le__': <function Vector3D.__le__>, '__lt__': <function Vector3D.__lt__>, '__neg__': <function Vector3D.__neg__>, '__str__': <function Vector3D.__str__>, '__repr__': <function Vector3D.__repr__>, 'length': <function Vector3D.length>, 'cross': <function Vector3D.cross>, 'dot': <function Vector3D.dot>, 'normalize': <function Vector3D.normalize>, 'perpendicularize': <function Vector3D.perpendicularize>, '__dict__': <attribute '__dict__' of 'Vector3D' objects>, '__weakref__': <attribute '__weakref__' of 'Vector3D' objects>, '__annotations__': {}})
- __doc__ = 'Represents a point in 3D space and/or a directional vector in 3D space.\n\n '
- __ge__(other: sierra.core.vector.Vector3D) bool [source]
Return self>=value.
- __le__(other: sierra.core.vector.Vector3D) bool [source]
Return self<=value.
- __lt__(other: sierra.core.vector.Vector3D) bool [source]
Determine if one vector is less than another by coordinate comparison.
- __module__ = 'sierra.core.vector'
- __neg__() sierra.core.vector.Vector3D [source]
- __weakref__
list of weak references to the object (if defined)
- static d2norm(lhs: sierra.core.vector.Vector3D, rhs: sierra.core.vector.Vector3D) float [source]
- static from_str(s: str, astype=<class 'int'>) sierra.core.vector.Vector3D [source]
- normalize() sierra.core.vector.Vector3D [source]
- perpendicularize() sierra.core.vector.Vector3D [source]