FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Point4D

    struct · ferroui-media3d · v0.5.0

    struct Point4D
    

    A point in homogeneous coordinates (x, y, z, w), with double-precision coordinates (WPF's System.Windows.Media.Media3D.Point4D). A Point3D is the point with w 1; a projective Matrix3D transforms a Point4D without the divide by w.

    View source

    Members

    x

    x: f64
    

    The X coordinate.

    Source

    y

    y: f64
    

    The Y coordinate.

    Source

    z

    z: f64
    

    The Z coordinate.

    Source

    w

    w: f64
    

    The W coordinate.

    Source

    new

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

    A point with the given coordinates.

    Source

    offset

    fn offset(self: &mut Self, delta_x: f64, delta_y: f64, delta_z: f64, delta_w: f64)
    

    Moves the point by the given amounts.

    Source

    parse

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

    Parses the text form "x,y,z,w" (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
    • MarkupTyped
    • From<Point3D>
    • Clone
    • Copy
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Default
    • Add
    • Sub
    • Mul<Matrix3D>
    • AddAssign
    • SubAssign
    • FromStr
    • Display

    Availability

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