Point3D Point3D Point3D Point3D Struct

定義

3-D 空間の x、y、z の各座標点を表します。Represents an x-, y-, and z-coordinate point in 3-D space.

public value class Point3D : IFormattable
[System.ComponentModel.TypeConverter(typeof(System.Windows.Media.Media3D.Point3DConverter))]
[System.Serializable]
public struct Point3D : IFormattable
type Point3D = struct
    interface IFormattable
Public Structure Point3D
Implements IFormattable
継承
属性
実装

減算する方法を示しますPoint3D構造体とVector3Dオーバー ロードされた減算を使用する構造体 (-) 演算子とPoint3D静的Subtractメソッド。This example shows how to subtract Point3D structures and Vector3D structures using the overloaded subtraction (-) operator and the Point3D static Subtract method.

次のコードを使用する方法を示しています、Point3D減算メソッド。The following code illustrates how to use the Point3D subtraction methods. 最初に、Point3D構造体とVector3D構造がインスタンス化します。First, the Point3D structures and the Vector3D structures are instantiated. Point3Dオーバー ロードされた減算を使用する構造体が差し引かれます (-) 演算子と、後は、静的 using 減算Subtractメソッド。The Point3D structures are subtracted using the overloaded subtraction (-) operator and then they are subtracted using the static Subtract method. 次に、Vector3D構造体は、最初から減算されますPoint3D静的構造体Subtractメソッド、および最後に、Point3D構造体を減算、Vector3Dオーバー ロードされた減算を使用する (-) 演算子。Next, the Vector3D structure is subtracted from the first Point3D structure using the static Subtract method, and finally the Point3D structure is subtract from the Vector3D using the overloaded subtraction (-) operator.

// instantiate variables
Point3D point1 = new Point3D();
Point3D point2 = new Point3D(15, 40, 60);
Vector3D vector1 = new Vector3D(20, 30, 40);
Point3D pointResult1 = new Point3D();
Point3D pointResult2 = new Point3D();
Vector3D vectorResult1 = new Vector3D();
Vector3D vectorResult2 = new Vector3D();

// defining x,y,z of point1
point1.X = 10;
point1.Y = 5;
point1.Z = 1;

vectorResult1 = Point3D.Subtract(point1, point2);
// vectorResult1 is equal to (-5, -35, -59)

vectorResult2 = point2 - point1;
// vectorResult2 is equal to (5, 35, 59)

pointResult1 = Point3D.Subtract(point1, vector1);
//  pointResult1 is equal to (-10, -25, -39)

pointResult2 = vector1 - point1;
//  pointResult2 is equal to (10, 25, 39)

注釈

XAML では、値の間の区切り記号で、Point3Dコンマまたは空白にすることができます。In XAML, the delimiter between the values of a Point3D can be either a comma or a space.

一部のカルチャは、ピリオド文字ではなく 10 進区切り記号としてコンマ文字を使用する場合があります。Some cultures might use the comma character as the decimal delimiter instead of the period character. XAML インバリアント カルチャの処理は、既定値は、ほとんどの XAML プロセッサ実装では、EN-US と 10 進数の区切り記号としてピリオドが必要です。XAML processing for invariant culture defaults to en-US in most XAML processor implementations, and expects the period to be the decimal delimiter. 指定する場合は、10 進数の区切り記号としてコンマ文字を使用しないように、 Point3D 、XAML での文字列型の変換に競合が発生するので、Point3Dをコンポーネントに属性値。You should avoid using the comma character as the decimal delimiter if specifying a Point3D in XAML, because that will clash with the string type conversion of a Point3D attribute value into its components.

XAML 属性の使用方法XAML Attribute Usage

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

XAML 値XAML Values

xx
これの x 座標Point3Dします。The x-coordinate of this Point3D.

yy
これの y 座標Point3Dします。The y-coordinate of this Point3D.

zz
これの z 座標Point3Dします。The z-coordinate of this Point3D.

コンストラクター

Point3D(Double, Double, Double) Point3D(Double, Double, Double) Point3D(Double, Double, Double) Point3D(Double, Double, Double)

Point3D 構造体の新しいインスタンスを初期化します。Initializes a new instance of the Point3D structure.

プロパティ

X X X X

これの x 座標を取得またはPoint3D構造体。Gets or sets the x-coordinate of this Point3D structure.

Y Y Y Y

これの y 座標を取得またはPoint3D構造体。Gets or sets the y-coordinate of this Point3D structure.

Z Z Z Z

これの z 座標を取得またはPoint3D構造体。Gets or sets the z-coordinate of this Point3D structure.

メソッド

Add(Point3D, Vector3D) Add(Point3D, Vector3D) Add(Point3D, Vector3D) Add(Point3D, Vector3D)

追加、Point3D構造体をVector3Dとして結果を返します、Point3D構造体。Adds a Point3D structure to a Vector3D and returns the result as a Point3D structure.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

指定したオブジェクトがあるかどうかを判断します、Point3D構造であれば、かどうか、 XY、およびZの指定したプロパティObjectと等しい、 XY、およびZの各プロパティPoint3D構造体。Determines whether the specified object is a Point3D structure and if so, whether the X, Y, and Z properties of the specified Object are equal to the X, Y, and Z properties of this Point3D structure.

Equals(Point3D) Equals(Point3D) Equals(Point3D) Equals(Point3D)

2 つPoint3D構造体が等しいかどうか。Compares two Point3D structures for equality.

Equals(Point3D, Point3D) Equals(Point3D, Point3D) Equals(Point3D, Point3D) Equals(Point3D, Point3D)

2 つPoint3D構造体が等しいかどうか。Compares two Point3D structures for equality.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

この Point3D 構造体のハッシュ コードを返します。Returns a hash code for this Point3D structure.

Multiply(Point3D, Matrix3D) Multiply(Point3D, Matrix3D) Multiply(Point3D, Matrix3D) Multiply(Point3D, Matrix3D)

指定した変換Point3D、指定した構造Matrix3D構造体。Transforms the specified Point3D structure by the specified Matrix3D structure.

Offset(Double, Double, Double) Offset(Double, Double, Double) Offset(Double, Double, Double) Offset(Double, Double, Double)

変換、Point3D指定した量の構造体。Translates the Point3D structure by the specified amounts.

Parse(String) Parse(String) Parse(String) Parse(String)

変換をString3-D の点を等価の表現Point3D構造体。Converts a String representation of a 3-D point into the equivalent Point3D structure.

Subtract(Point3D, Point3D) Subtract(Point3D, Point3D) Subtract(Point3D, Point3D) Subtract(Point3D, Point3D)

減算、Point3Dから構造体、Point3D構造体し、結果として返します、Vector3D構造体。Subtracts a Point3D structure from a Point3D structure and returns the result as a Vector3D structure.

Subtract(Point3D, Vector3D) Subtract(Point3D, Vector3D) Subtract(Point3D, Vector3D) Subtract(Point3D, Vector3D)

減算、Vector3Dから構造体、Point3D構造体し、結果として返します、Point3D構造体。Subtracts a Vector3D structure from a Point3D structure and returns the result as a Point3D structure.

ToString() ToString() ToString() ToString()

作成、Stringこの表現Point3D構造体。Creates a String representation of this Point3D structure.

ToString(IFormatProvider) ToString(IFormatProvider) ToString(IFormatProvider) ToString(IFormatProvider)

作成、Stringこの表現Point3D構造体。Creates a String representation of this Point3D structure.

演算子

Addition(Point3D, Vector3D) Addition(Point3D, Vector3D) Addition(Point3D, Vector3D) Addition(Point3D, Vector3D)

追加、Point3D構造体をVector3Dとして結果を返します、Point3D構造体。Adds a Point3D structure to a Vector3D and returns the result as a Point3D structure.

Equality(Point3D, Point3D) Equality(Point3D, Point3D) Equality(Point3D, Point3D) Equality(Point3D, Point3D)

2 つPoint3D構造体が等しいかどうか。Compares two Point3D structures for equality.

Explicit(Point3D to Point4D) Explicit(Point3D to Point4D) Explicit(Point3D to Point4D) Explicit(Point3D to Point4D)

変換をPoint3Dに構造体、Point4D構造体。Converts a Point3D structure into a Point4D structure.

Explicit(Point3D to Vector3D) Explicit(Point3D to Vector3D) Explicit(Point3D to Vector3D) Explicit(Point3D to Vector3D)

変換をPoint3Dに構造体、Vector3D構造体。Converts a Point3D structure into a Vector3D structure.

Inequality(Point3D, Point3D) Inequality(Point3D, Point3D) Inequality(Point3D, Point3D) Inequality(Point3D, Point3D)

2 つPoint3D構造体が等しくないです。Compares two Point3D structures for inequality.

Multiply(Point3D, Matrix3D) Multiply(Point3D, Matrix3D) Multiply(Point3D, Matrix3D) Multiply(Point3D, Matrix3D)

指定した変換Point3D、指定した構造Matrix3D構造体。Transforms the specified Point3D structure by the specified Matrix3D structure.

Subtraction(Point3D, Point3D) Subtraction(Point3D, Point3D) Subtraction(Point3D, Point3D) Subtraction(Point3D, Point3D)

減算、Point3Dから構造体、Point3D構造体し、結果として返します、Vector3D構造体。Subtracts a Point3D structure from a Point3D structure and returns the result as a Vector3D structure.

Subtraction(Point3D, Vector3D) Subtraction(Point3D, Vector3D) Subtraction(Point3D, Vector3D) Subtraction(Point3D, Vector3D)

減算、Vector3Dから構造体、Point3D構造体し、結果として返します、Point3D構造体。Subtracts a Vector3D structure from a Point3D structure and returns the result as a Point3D structure.

明示的なインターフェイスの実装

IFormattable.ToString(String, IFormatProvider) IFormattable.ToString(String, IFormatProvider) IFormattable.ToString(String, IFormatProvider) IFormattable.ToString(String, IFormatProvider)

このメンバーは、Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) インフラストラクチャをサポートしますが、独自に作成したコードから直接使用するためのものではありません。This member supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. このメンバーの詳細については、「ToString(String, IFormatProvider)」をご覧ください。For a description of this member, see ToString(String, IFormatProvider).

適用対象