pub struct vtkSphericalTransform(/* private fields */);Expand description
spherical to rectangular coords and back
vtkSphericalTransform will convert (r,phi,theta) coordinates to (x,y,z) coordinates and back again. The angles are given in radians. By default, it converts spherical coordinates to rectangular, but GetInverse() returns a transform that will do the opposite. The equation that is used is x = r*sin(phi)cos(theta), y = rsin(phi)sin(theta), z = rcos(phi). @warning This transform is not well behaved along the line x=y=0 (i.e. along the z-axis) @sa vtkCylindricalTransform vtkGeneralTransform
Implementations§
Source§impl vtkSphericalTransform
impl vtkSphericalTransform
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new vtkSphericalTransform wrapped inside vtkNew
Trait Implementations§
Source§impl Default for vtkSphericalTransform
impl Default for vtkSphericalTransform
Auto Trait Implementations§
impl Freeze for vtkSphericalTransform
impl RefUnwindSafe for vtkSphericalTransform
impl !Send for vtkSphericalTransform
impl !Sync for vtkSphericalTransform
impl Unpin for vtkSphericalTransform
impl UnwindSafe for vtkSphericalTransform
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more