FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Point3D

    struct · ferroui-media3d · v0.5.0

    struct Point3D
    

    A location in 3D space, with double-precision coordinates (WPF's System.Windows.Media.Media3D.Point3D).

    View source

    Members

    x

    x: f64
    

    The X coordinate.

    Source

    y

    y: f64
    

    The Y coordinate.

    Source

    z

    z: f64
    

    The Z coordinate.

    Source

    new

    const fn new(x: f64, y: f64, z: f64) -> Self
    

    A point with the given coordinates.

    Source

    offset

    fn offset(self: &mut Self, offset_x: f64, offset_y: f64, offset_z: f64)
    

    Moves the point by the given amounts.

    Source

    parse

    fn parse(text: &str) -> Result<Self, FormatError>
    

    Parses the text form "x,y,z" (commas, white space or both between the numbers) in the invariant culture.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ToString
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • FromIterator<Point3D>
    • MarkupTyped
    • Clone
    • Copy
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Default
    • Add<Vector3D>
    • Sub<Vector3D>
    • Sub
    • Mul<Matrix3D>
    • AddAssign<Vector3D>
    • SubAssign<Vector3D>
    • From<Point3D>
    • FromStr
    • Display
    • From<Size3D>
    • Add<Point3D>
    • Sub<Point3D>
    • From<Vector3D>

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.