ThreeVector#

class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float)[source]#
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, z: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, eta: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, theta: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, z: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, eta: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, theta: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pt: float, phi: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, pz: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, z: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, pz: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, z: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, pz: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, z: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, pz: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, pz: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pt: float, phi: float, z: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pt: float, phi: float, pz: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, theta: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, theta: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, theta: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pt: float, phi: float, theta: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, eta: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, eta: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, eta: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pt: float, phi: float, eta: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, z: float, t: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, pz: float, t: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, z: float, t: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, pz: float, t: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, z: float, t: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, pz: float, t: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, z: float, t: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, pz: float, t: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, z: float, t: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, pz: float, t: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pt: float, phi: float, z: float, t: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pt: float, phi: float, pz: float, t: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, theta: float, t: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, theta: float, t: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, theta: float, t: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, theta: float, t: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, theta: float, t: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pt: float, phi: float, theta: float, t: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, eta: float, t: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, eta: float, t: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, eta: float, t: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, eta: float, t: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, eta: float, t: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pt: float, phi: float, eta: float, t: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, z: float, tau: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, pz: float, tau: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, z: float, tau: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, pz: float, tau: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, z: float, tau: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, pz: float, tau: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, z: float, tau: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, pz: float, tau: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, z: float, tau: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, pz: float, tau: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, ptau: float, phi: float, z: float, tau: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, ptau: float, phi: float, pz: float, tau: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, theta: float, tau: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, theta: float, tau: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, theta: float, tau: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, theta: float, tau: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, theta: float, tau: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, ptau: float, phi: float, theta: float, tau: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, eta: float, tau: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, eta: float, tau: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, eta: float, tau: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, eta: float, tau: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, eta: float, tau: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, ptau: float, phi: float, eta: float, tau: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, z: float, E: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, pz: float, E: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, z: float, E: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, pz: float, E: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, z: float, E: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, pz: float, E: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, z: float, E: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, pz: float, E: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, z: float, E: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, pz: float, E: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pE: float, phi: float, z: float, E: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pE: float, phi: float, pz: float, E: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, theta: float, E: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, theta: float, E: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, theta: float, E: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, theta: float, E: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, theta: float, E: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pE: float, phi: float, theta: float, E: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, eta: float, E: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, eta: float, E: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, eta: float, E: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, eta: float, E: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, eta: float, E: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pE: float, phi: float, eta: float, E: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, z: float, e: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, pz: float, e: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, z: float, e: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, pz: float, e: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, z: float, e: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, pz: float, e: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, z: float, e: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, pz: float, e: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, z: float, e: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, pz: float, e: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pe: float, phi: float, z: float, e: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pe: float, phi: float, pz: float, e: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, theta: float, e: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, theta: float, e: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, theta: float, e: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, theta: float, e: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, theta: float, e: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pe: float, phi: float, theta: float, e: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, eta: float, e: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, eta: float, e: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, eta: float, e: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, eta: float, e: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, eta: float, e: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pe: float, phi: float, eta: float, e: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, z: float, energy: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, pz: float, energy: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, z: float, energy: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, pz: float, energy: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, z: float, energy: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, pz: float, energy: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, z: float, energy: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, pz: float, energy: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, z: float, energy: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, pz: float, energy: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pt: float, phi: float, z: float, energy: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pt: float, phi: float, pz: float, energy: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, theta: float, energy: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, theta: float, energy: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, theta: float, energy: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, theta: float, energy: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, theta: float, energy: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pt: float, phi: float, theta: float, energy: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, eta: float, energy: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, eta: float, energy: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, eta: float, energy: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, eta: float, energy: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, eta: float, energy: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pt: float, phi: float, eta: float, energy: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, z: float, M: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, pz: float, M: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, z: float, M: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, pz: float, M: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, z: float, M: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, pz: float, M: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, z: float, M: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, pz: float, M: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, z: float, M: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, pz: float, M: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pM: float, phi: float, z: float, M: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pM: float, phi: float, pz: float, M: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, theta: float, M: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, theta: float, M: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, theta: float, M: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, theta: float, M: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, theta: float, M: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pM: float, phi: float, theta: float, M: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, eta: float, M: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, eta: float, M: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, eta: float, M: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, eta: float, M: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, eta: float, M: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pM: float, phi: float, eta: float, M: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, z: float, m: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, pz: float, m: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, z: float, m: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, pz: float, m: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, z: float, m: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, pz: float, m: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, z: float, m: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, pz: float, m: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, z: float, m: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, pz: float, m: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pm: float, phi: float, z: float, m: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pm: float, phi: float, pz: float, m: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, theta: float, m: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, theta: float, m: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, theta: float, m: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, theta: float, m: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, theta: float, m: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pm: float, phi: float, theta: float, m: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, eta: float, m: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, eta: float, m: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, eta: float, m: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, eta: float, m: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, eta: float, m: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pm: float, phi: float, eta: float, m: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, z: float, mass: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, pz: float, mass: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, z: float, mass: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, pz: float, mass: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, z: float, mass: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, pz: float, mass: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, z: float, mass: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, pz: float, mass: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, z: float, mass: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, pz: float, mass: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pt: float, phi: float, z: float, mass: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pt: float, phi: float, pz: float, mass: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, theta: float, mass: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, theta: float, mass: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, theta: float, mass: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, theta: float, mass: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, theta: float, mass: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pt: float, phi: float, theta: float, mass: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, y: float, eta: float, mass: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, x: float, py: float, eta: float, mass: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, y: float, eta: float, mass: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, px: float, py: float, eta: float, mass: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, rho: float, phi: float, eta: float, mass: float)
class coffea.nanoevents.methods.vector.ThreeVector(*, pt: float, phi: float, eta: float, mass: float)
class coffea.nanoevents.methods.vector.ThreeVector(__azimuthal: Azimuthal)
class coffea.nanoevents.methods.vector.ThreeVector(__azimuthal: Azimuthal, __longitudinal: Longitudinal)
class coffea.nanoevents.methods.vector.ThreeVector(__azimuthal: Azimuthal, __longitudinal: Longitudinal, __temporal: Temporal)

Bases: MomentumAwkward3D

A cartesian 3-dimensional vector

A heavy emphasis towards a momentum vector interpretation is assumed. This mixin class requires the parent class to provide items x, y, and z.

Attributes Summary

r

Distance from origin in XY plane

r2

Squared r

unit

Unit vector, a vector of length 1 pointing in the same direction

Methods Summary

absolute()

Returns magnitude of the 3D vector

delta_phi(other)

Compute difference in angle between two vectors

divide(other)

Divide this vector by a scalar elementwise using its cartesian components This is realized by using the multiplication functionality

multiply(other)

Multiply this vector by a scalar elementwise using x, y, and z components

negative()

Returns the negative of the vector

sum([axis])

Sum an array of vectors elementwise using x, y, and z components

Attributes Documentation

r#

Distance from origin in XY plane

\(\sqrt{x^2+y^2}\)

r2#

Squared r

unit#

Unit vector, a vector of length 1 pointing in the same direction

Methods Documentation

absolute()[source]#

Returns magnitude of the 3D vector

Alias for rho

delta_phi(other)[source]#

Compute difference in angle between two vectors

Returns a value within [-pi, pi)

divide(other)[source]#

Divide this vector by a scalar elementwise using its cartesian components This is realized by using the multiplication functionality

multiply(other)[source]#

Multiply this vector by a scalar elementwise using x, y, and z components

negative()[source]#

Returns the negative of the vector

sum(axis=-1)[source]#

Sum an array of vectors elementwise using x, y, and z components