[−][src]Struct gdnative_core::geom::Transform
3D Transformation (3x4 matrix) Using basis + origin representation.
Fields
basis: BasisThe basis is a matrix containing 3 Vector3 as its columns: X axis, Y axis, and Z axis. These vectors can be interpreted as the basis vectors of local coordinate system traveling with the object.
origin: Vector3The translation offset of the transform.
Implementations
impl Transform[src]
pub fn translate(origin: Vector3) -> Transform[src]
pub fn from_transform(transform: &Transform3D<f32>) -> Transform[src]
Creates a Basis from the rotation and scaling of the provided transform.
pub fn from_typed_transform<Src, Dst>(
transform: &Transform3D<f32, Src, Dst>
) -> Transform[src]
transform: &Transform3D<f32, Src, Dst>
) -> Transform
Creates a Basis from the rotation and scaling of the provided transform, in Dst space.
Trait Implementations
impl Clone for Transform[src]
impl Copy for Transform[src]
impl Debug for Transform[src]
impl Export for Transform[src]
type Hint = ()
A type-specific hint type that is valid for the type being exported.
fn export_info(_hint: Option<Self::Hint>) -> ExportInfo[src]
impl<'l> From<&'l Transform> for Variant[src]
impl FromVariant for Transform[src]
fn from_variant(variant: &Variant) -> Result<Self, FromVariantError>[src]
impl PartialEq<Transform> for Transform[src]
impl StructuralPartialEq for Transform[src]
impl ToVariant for Transform[src]
fn to_variant(&self) -> Variant[src]
Auto Trait Implementations
impl RefUnwindSafe for Transform
impl Send for Transform
impl Sync for Transform
impl Unpin for Transform
impl UnwindSafe for Transform
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Export for T where
T: GodotObject + ToVariant, [src]
T: GodotObject + ToVariant,
type Hint = ()
A type-specific hint type that is valid for the type being exported.
fn export_info(Option<<T as Export>::Hint>) -> ExportInfo[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,