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.
Members
x
x: f64
The X coordinate.
y
y: f64
The Y coordinate.
z
z: f64
The Z coordinate.
w
w: f64
The W coordinate.
new
const fn new(x: f64, y: f64, z: f64, w: f64) -> Self
A point with the given coordinates.
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.
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedToStringPropertyValueAnyValueClassDefaultsErasedDestructorIntoEitherMarkupTypedFrom<Point3D>CloneCopyDebugStructuralPartialEqPartialEqDefaultAddSubMul<Matrix3D>AddAssignSubAssignFromStrDisplay
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.