Basis

    A 3×3 matrix for representing 3D rotation and scale.

    Basis.swift:15
    struct Basis

    A 3×3 matrix used for representing 3D rotation and scale. Usually used as an orthogonal basis for a Transform3D.

    Contains 3 vector fields X, Y and Z as its columns, which are typically interpreted as the local basis vectors of a transformation. For such use, it is composed of a scaling and a rotation matrix, in that order (M = R.S).

    Basis can also be accessed as an array of 3D vectors. These vectors are usually orthogonal to each other, but are not necessarily normalized (due to scaling).

    For more information, read the “Matrices and transforms” documentation article.

    Citizens in SwiftGodot

    Conformances

    • protocol Equatable

      A type that can be compared for value equality.

    • protocol Hashable

      A type that can be hashed into a Hasher to produce an integer hash value.

    • protocol SelfVariantRepresentable

      Structs and scalar types use their own layout for storage.

    • protocol VariantRepresentable

      Types that conform to VariantRepresentable can be stored directly in Variant with no conversion. These include all of the Variant types from Godot (for example GString, Rect, Plane), Godot objects (those that subclass SwiftGodot.Object) as well as the built-in Swift types UInt8, Int64 and Double.

    • protocol VariantStorable

      Types that conform to VariantStorable can be stored in a Variant and can be extracted back out of a Variant.

    Type members

    Instance members

    Type features

    Instance features