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 오버 로드 된 빼기를 사용 하 여 구조체를 뺀 (-) 연산자 있으며 다음 공제 정적을 사용 하 여 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.

일부 문화권 마침표 대신 소수 구분 기호로 쉼표 문자를 사용할 수 있습니다.Some cultures might use the comma character as the decimal delimiter instead of the period character. 고정 문화권에 대 한 처리 하는 XAML 대부분의 XAML 프로세서 구현에서 EN-US로 기본값과 소수 구분 기호로 마침표를 예상 합니다.XAML processing for invariant culture defaults to en-US in most XAML processor implementations, and expects the period to be the decimal delimiter. 지정 하는 경우 소수 구분 기호로 쉼표를 사용 하면 안을 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
Point3D의 x좌표입니다.The x-coordinate of this Point3D.

yy
Point3D의 y좌표입니다.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

Point3D 구조체의 X 좌표를 가져오거나 설정합니다.Gets or sets the x-coordinate of this Point3D structure.

Y Y Y Y

Point3D 구조체의 Y 좌표를 가져오거나 설정합니다.Gets or sets the y-coordinate of this Point3D structure.

Z Z Z Z

Point3D 구조체의 Z 좌표를 가져오거나 설정합니다.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, ZObject 속성이 이 X 구조체의 Y, ZPoint3D 속성과 같은지 확인합니다.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)

Point3D 구조체가 같은지 여부를 비교합니다.Compares two Point3D structures for equality.

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

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)

3차원 점의 String 표현을 해당 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)

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)

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)

이 멤버는 WPF(Windows Presentation Foundation)Windows Presentation Foundation (WPF) 인프라를 지원하며 코드에서 직접 사용할 수 없습니다.This member supports the WPF(Windows Presentation Foundation)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).

적용 대상