NeoEuler#

class orix.vector.NeoEuler(data=None)[source]#

Bases: Vector3d, ABC

Base class for neo-Eulerian vectors.

Attributes

NeoEuler.angle

Return the angles of rotation.

NeoEuler.axis

Return the axes of rotation.

NeoEuler.azimuth

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].

NeoEuler.data

Return the data.

NeoEuler.ndim

Return the number of navigation dimensions of the object.

NeoEuler.norm

Return the norm of the data.

NeoEuler.perpendicular

Return the perpendicular vectors.

NeoEuler.polar

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].

NeoEuler.radial

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].

NeoEuler.shape

Return the shape of the object.

NeoEuler.size

Return the total number of entries in this object.

NeoEuler.unit

Return the unit object.

NeoEuler.x

Return or set the x coordinates.

NeoEuler.xyz

Return the coordinates as three arrays, useful for plotting.

NeoEuler.y

Return or set the y coordinates.

NeoEuler.z

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 of the vectors and the other 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.

NeoEuler.empty()

Return an empty object with the appropriate dimensions.

NeoEuler.flatten()

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).

NeoEuler.inverse_pole_density_function([...])

Plot the Inverse Pole Density Function (IPDF) within the fundamental sector of a given point group symmetry in the stereographic projection.

NeoEuler.mean()

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.

NeoEuler.squeeze()

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.

NeoEuler.xvector()

Return a unit vector in the x-direction.

NeoEuler.yvector()

Return a unit vector in the y-direction.

NeoEuler.zero([shape])

Return zero vectors in the specified shape.

NeoEuler.zvector()

Return a unit vector in the z-direction.