NeoEuler#
- class orix.vector.NeoEuler(data=None)[source]#
-
Base class for neo-Eulerian vectors.
Attributes
Return the angles of rotation.
Return the axes of rotation.
Azimuth spherical coordinate, i.e. the angle \(\phi \in [0, 2\pi]\) from the positive z-axis to a point on the sphere, according to the ISO 31-11 standard [Weisstein, 2005].
Return the data.
Return the number of navigation dimensions of the object.
Return the norm of the data.
Return the perpendicular vectors.
Polar spherical coordinate, i.e. the angle \(\theta \in [0, \pi]\) from the positive z-axis to a point on the sphere, according to the ISO 31-11 standard [Weisstein, 2005].
Return the radial spherical coordinate, i.e. the distance from a point on the sphere to the origin, according to the ISO 31-11 standard [Weisstein, 2005].
Return the shape of the object.
Return the total number of entries in this object.
Return the unit object.
Return or set the x coordinates.
Return the coordinates as three arrays, useful for plotting.
Return or set the y coordinates.
Return or set the z coordinate.
Methods
NeoEuler.angle_with
(other[, degrees])Return the angles between these vectors in other vectors.
NeoEuler.cross
(other)Return the cross product of a vector with another vector.
NeoEuler.dot
(other)Return the dot products \(D\) of the vectors.
NeoEuler.dot_outer
(other[, lazy, ...])Return the outer dot products of all vectors and all the other vectors.
NeoEuler.draw_circle
([projection, figure, ...])Draw great or small circles with a given
opening_angle
to to the vectors in the stereographic projection.Return an empty object with the appropriate dimensions.
Return a new object with the same data in a single column.
NeoEuler.from_path_ends
(vectors[, close, steps])Return vectors along the shortest path on the sphere between two or more consectutive vectors.
NeoEuler.from_polar
(azimuth, polar[, ...])Initialize from spherical coordinates according to the ISO 31-11 standard [Weisstein, 2005].
NeoEuler.from_rotation
(rotation)Create vectors in neo-Eulerian representation from rotations.
NeoEuler.get_circle
([opening_angle, steps])Get vectors delineating great or small circle(s) with a given
opening_angle
about each vector.NeoEuler.get_nearest
(x[, inclusive, tiebreak])Return the vector in
x
with the smallest angle to this vector.NeoEuler.get_random_sample
([size, replace, ...])Return a new flattened object from a random sample of a given size.
NeoEuler.in_fundamental_sector
(symmetry)Project vectors to a symmetry's fundamental sector (inverse pole figure).
Plot the Inverse Pole Density Function (IPDF) within the fundamental sector of a given point group symmetry in the stereographic projection.
Return the mean vector.
NeoEuler.pole_density_function
([resolution, ...])Plot the Pole Density Function (PDF) on a given hemisphere in the stereographic projection.
NeoEuler.random
([shape])Create object with random data.
NeoEuler.reshape
(*shape)Return a new object with the same data in a new shape.
NeoEuler.rotate
([axis, angle])Convenience function for rotating this vector.
NeoEuler.scatter
([projection, figure, ...])Plot vectors in the stereographic projection.
Return a new object with the same data with length 1-dimensions removed.
NeoEuler.stack
(sequence)Return a stacked object from the sequence.
NeoEuler.to_polar
([degrees])Return the azimuth \(\phi\), polar \(\theta\), and radial \(r\) spherical coordinates defined as in the ISO 31-11 standard [Weisstein, 2005].
NeoEuler.transpose
(*axes)Return a new object with the same data transposed.
NeoEuler.unique
([return_index, return_inverse])Return a new object containing only this object's unique entries.
Return a unit vector in the x-direction.
Return a unit vector in the y-direction.
NeoEuler.zero
([shape])Return zero vectors in the specified shape.
Return a unit vector in the z-direction.