Vector3D

class kgpy.vector.Vector3D(x=0, y=0, z=0)

Bases: Vector2D

Parameters
__init__(x=0, y=0, z=0)
Parameters
Return type

None

Attributes

broadcast

length

length_l1

length_squared

ndim

quantity

shape

size

x

x_final

x_index

xy

y

y_final

y_index

yz

z

z_final

z_index

zx

Methods

__init__([x, y, z])

angular()

rtype

kgpy.vector.Vector3D

copy()

rtype

typing.TypeVar(CopyableT, bound= Copyable)

copy_shallow()

rtype

typing.TypeVar(CopyableT, bound= Copyable)

cross(other)

dimensionless()

rtype

kgpy.vector.Vector3D

from_cylindrical([radius, azimuth, z])

rtype

kgpy.vector.Vector3D

from_quantity(value)

from_tuple(value)

get_component(comp)

rtype

astropy.units.Quantity

max([axis, keepdims])

rtype

kgpy.vector.Vector3D

min([axis, keepdims])

rtype

kgpy.vector.Vector3D

normalize()

rtype

kgpy.vector.Vector

outer(other)

rtype

kgpy.matrix.Matrix3D

reshape(*args)

rtype

kgpy.vector.Vector3D

set_component(comp, value)

spatial()

rtype

kgpy.vector.Vector3D

sum([axis, keepdims])

rtype

kgpy.vector.Vector3D

take(indices[, axis, out, mode])

to(unit)

rtype

kgpy.vector.Vector3D

to_3d([z])

rtype

kgpy.vector.Vector3D

to_tuple()

rtype

typing.Tuple

Inheritance Diagram

Inheritance diagram of kgpy.vector.Vector3D

classmethod angular()
Return type

kgpy.vector.Vector3D

copy()
Return type

typing.TypeVar(CopyableT, bound= Copyable)

Parameters

self (CopyableT) –

copy_shallow()
Return type

typing.TypeVar(CopyableT, bound= Copyable)

Parameters

self (CopyableT) –

cross(other)
classmethod dimensionless()
Return type

kgpy.vector.Vector3D

classmethod from_cylindrical(radius=<Quantity 0.>, azimuth=<Quantity 0. deg>, z=<Quantity 0.>)
Return type

kgpy.vector.Vector3D

Parameters
classmethod from_quantity(value)
Parameters

value (Quantity) –

classmethod from_tuple(value)
Parameters

value (Tuple) –

get_component(comp)
Return type

astropy.units.Quantity

Parameters

comp (str) –

max(axis=None, keepdims=False)
Return type

kgpy.vector.Vector3D

Parameters
min(axis=None, keepdims=False)
Return type

kgpy.vector.Vector3D

Parameters
normalize()
Return type

kgpy.vector.Vector

outer(other)
Return type

kgpy.matrix.Matrix3D

Parameters

other (Vector3D) –

reshape(*args)
Return type

kgpy.vector.Vector3D

set_component(comp, value)
Parameters
classmethod spatial()
Return type

kgpy.vector.Vector3D

sum(axis=None, keepdims=False)
Return type

kgpy.vector.Vector3D

Parameters
take(indices, axis=None, out=None, mode='raise')
Parameters
to(unit)
Return type

kgpy.vector.Vector3D

Parameters

unit (Unit) –

to_3d(z=None)
Return type

kgpy.vector.Vector3D

Parameters

z (Optional[Quantity]) –

to_tuple()
Return type

typing.Tuple

property broadcast
property length
property length_l1: Quantity
property length_squared: Quantity
property ndim: int
property quantity: Quantity
property shape: Tuple[int, ...]
property size: int
x: typing.Union[typing.Sequence[typing.Sequence[typing.Sequence[typing.Sequence[typing.Sequence[typing.Any]]]]], numpy.typing._array_like._SupportsArray[numpy.dtype], typing.Sequence[numpy.typing._array_like._SupportsArray[numpy.dtype]], typing.Sequence[typing.Sequence[numpy.typing._array_like._SupportsArray[numpy.dtype]]], typing.Sequence[typing.Sequence[typing.Sequence[numpy.typing._array_like._SupportsArray[numpy.dtype]]]], typing.Sequence[typing.Sequence[typing.Sequence[typing.Sequence[numpy.typing._array_like._SupportsArray[numpy.dtype]]]]], bool, int, float, complex, str, bytes, typing.Sequence[typing.Union[bool, int, float, complex, str, bytes]], typing.Sequence[typing.Sequence[typing.Union[bool, int, float, complex, str, bytes]]], typing.Sequence[typing.Sequence[typing.Sequence[typing.Union[bool, int, float, complex, str, bytes]]]], typing.Sequence[typing.Sequence[typing.Sequence[typing.Sequence[typing.Union[bool, int, float, complex, str, bytes]]]]]] = 0
property x_final: Quantity
x_index: typing.ClassVar[int] = 0
property xy: Vector2D
y: typing.Union[typing.Sequence[typing.Sequence[typing.Sequence[typing.Sequence[typing.Sequence[typing.Any]]]]], numpy.typing._array_like._SupportsArray[numpy.dtype], typing.Sequence[numpy.typing._array_like._SupportsArray[numpy.dtype]], typing.Sequence[typing.Sequence[numpy.typing._array_like._SupportsArray[numpy.dtype]]], typing.Sequence[typing.Sequence[typing.Sequence[numpy.typing._array_like._SupportsArray[numpy.dtype]]]], typing.Sequence[typing.Sequence[typing.Sequence[typing.Sequence[numpy.typing._array_like._SupportsArray[numpy.dtype]]]]], bool, int, float, complex, str, bytes, typing.Sequence[typing.Union[bool, int, float, complex, str, bytes]], typing.Sequence[typing.Sequence[typing.Union[bool, int, float, complex, str, bytes]]], typing.Sequence[typing.Sequence[typing.Sequence[typing.Union[bool, int, float, complex, str, bytes]]]], typing.Sequence[typing.Sequence[typing.Sequence[typing.Sequence[typing.Union[bool, int, float, complex, str, bytes]]]]]] = 0
property y_final: Quantity
y_index: typing.ClassVar[int] = 1
property yz: Vector2D
z: typing.Union[typing.Sequence[typing.Sequence[typing.Sequence[typing.Sequence[typing.Sequence[typing.Any]]]]], numpy.typing._array_like._SupportsArray[numpy.dtype], typing.Sequence[numpy.typing._array_like._SupportsArray[numpy.dtype]], typing.Sequence[typing.Sequence[numpy.typing._array_like._SupportsArray[numpy.dtype]]], typing.Sequence[typing.Sequence[typing.Sequence[numpy.typing._array_like._SupportsArray[numpy.dtype]]]], typing.Sequence[typing.Sequence[typing.Sequence[typing.Sequence[numpy.typing._array_like._SupportsArray[numpy.dtype]]]]], bool, int, float, complex, str, bytes, typing.Sequence[typing.Union[bool, int, float, complex, str, bytes]], typing.Sequence[typing.Sequence[typing.Union[bool, int, float, complex, str, bytes]]], typing.Sequence[typing.Sequence[typing.Sequence[typing.Union[bool, int, float, complex, str, bytes]]]], typing.Sequence[typing.Sequence[typing.Sequence[typing.Sequence[typing.Union[bool, int, float, complex, str, bytes]]]]]] = 0
property z_final: Quantity
z_index: typing.ClassVar[int] = 2
property zx: Vector2D