Upravit

Sdílet prostřednictvím


Point4D Struct

Definition

Represents an x-, y-, z-, and w-coordinate point in world space used in performing transformations with non-affine 3-D matrices.

public value class Point4D : IFormattable
[System.ComponentModel.TypeConverter(typeof(System.Windows.Media.Media3D.Point4DConverter))]
[System.Serializable]
public struct Point4D : IFormattable
[System.ComponentModel.TypeConverter(typeof(System.Windows.Media.Media3D.Point4DConverter))]
public struct Point4D : IFormattable
[<System.ComponentModel.TypeConverter(typeof(System.Windows.Media.Media3D.Point4DConverter))>]
[<System.Serializable>]
type Point4D = struct
    interface IFormattable
[<System.ComponentModel.TypeConverter(typeof(System.Windows.Media.Media3D.Point4DConverter))>]
type Point4D = struct
    interface IFormattable
Public Structure Point4D
Implements IFormattable
Inheritance
Point4D
Attributes
Implements

Remarks

In XAML, the delimiter between the values of a Point4D can be either a comma or a space.

Some cultures might use the comma character as the decimal delimiter instead of the period character. XAML processing for invariant culture defaults to en-US in most XAML processor implementations, and expects the period to be the decimal delimiter. You should avoid using the comma character as the decimal delimiter if specifying a Point4D in XAML, because that will clash with the string type conversion of a Point4D attribute value into its components.

XAML Attribute Usage

<object property="x,y,z,w"/>  
-or-  
<object property="x y z w"/>  

XAML Values

x
The X component of this Point4D structure.

y
The Y component of this Point4D structure.

z
The Z component of this Point4D structure.

w
The W component of this Point4D structure.

Constructors

Point4D(Double, Double, Double, Double)

Initializes a new instance of the Point4D structure.

Properties

W

Gets or sets the W component of this Point4D structure.

X

Gets or sets the X component of this Point4D structure.

Y

Gets or sets the Y component of this Point4D structure.

Z

Gets or sets the Z component of this Point4D structure.

Methods

Add(Point4D, Point4D)

Adds a Point4D structure to a Point4D.

Equals(Object)

Determines whether the specified Object is a Point4D structure and if the X, Y, Z, and W properties of the specified Object are equal to the X, Y, Z, and W properties of this Point4D structure.

Equals(Point4D, Point4D)

Compares two Point4D structures for equality.

Equals(Point4D)

Compares two Point4D structures for equality.

GetHashCode()

Returns a hash code for this Point4D structure.

Multiply(Point4D, Matrix3D)

Transforms the specified Point4D structure by the specified Matrix3D structure.

Offset(Double, Double, Double, Double)

Translates the Point4D structure by the specified amounts.

Parse(String)

Converts a String representation of a point4D structure into the equivalent Point4D structure.

Subtract(Point4D, Point4D)

Subtracts a Point4D structure from a Point4D structure.

ToString()

Creates a String representation of this Point4D structure.

ToString(IFormatProvider)

Creates a String representation of this Point4D structure.

Operators

Addition(Point4D, Point4D)

Adds a Point4D structure to a Point4D.

Equality(Point4D, Point4D)

Compares two Point4D structures for equality.

Inequality(Point4D, Point4D)

Compares two Point4D structures for inequality.

Multiply(Point4D, Matrix3D)

Transforms the specified Point4D structure by the specified Matrix3D structure.

Subtraction(Point4D, Point4D)

Subtracts a Point4D structure from a Point4D structure and returns the result as a Point4D structure.

Explicit Interface Implementations

IFormattable.ToString(String, IFormatProvider)

This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. For a description of this member, see ToString(String, IFormatProvider).

Applies to