Vector3D Vector3D Vector3D Vector3D Struct

정의

3차원 공간의 변위를 나타냅니다.Represents a displacement in 3-D space.

public value class Vector3D : IFormattable
[System.ComponentModel.TypeConverter(typeof(System.Windows.Media.Media3D.Vector3DConverter))]
[System.Serializable]
public struct Vector3D : IFormattable
type Vector3D = struct
    interface IFormattable
Public Structure Vector3D
Implements IFormattable
상속
특성
구현

예제

이 예제에서는 빼기 Vector3D 오버 로드 된 빼기를 사용 하 여 구조 (-) 연산자와 Vector3D 정적 Subtract 메서드.This example shows how to subtract Vector3D structures using the overloaded subtraction (-) operator and the Vector3D static Subtract method.

다음 코드를 사용 하는 방법을 보여 줍니다는 Vector3D 빼기 메서드.The following code shows how to use the Vector3D subtraction methods. 첫 번째는 Vector3D 구조체를 인스턴스화합니다.First, the Vector3D structures are instantiated. 합니다 Vector3D 오버 로드 된를 사용 하 여 구조체를 뺀 (-) 연산자가 있으며 다음 공제 정적을 사용 하 여 Subtract 메서드.The Vector3D structures are subtracted using the overloaded (-) operator, and then they are subtracted using the static Subtract method.

// Subtracts two 3-D Vectors using the Subtract method and -

// Declaring vector1 and initializing x,y,z values
Vector3D vector1 = new Vector3D(20, 30, 40);

// Declaring vector2 without initializing x,y,z values
Vector3D vector2 = new Vector3D();

// Assigning values to vector2
vector2.X = 45;
vector2.Y = 70;
vector2.Z = 80;

// Subtracting vectors using overload - operator
Vector3D vectorResult1 = new Vector3D();
vectorResult1 = vector1 - vector2;
// vectorResult1 is equal to (-25, -40, -40)

// Subtracting vectors using static Subtract method
Vector3D vectorResult2 = new Vector3D();
vectorResult2 = Vector3D.Subtract(vector1, vector2);
// vector2 is equal to (-25, -40, -40)

설명

XAML 특성 사용XAML Attribute Usage

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

XAML 값XAML Values

xx
Vector3D 구조체의 X 구성 요소입니다.The X component of this Vector3D structure.

yy
Vector3D 구조체의 Y 구성 요소입니다.The Y component of this Vector3D structure.

zz
Vector3D 구조체의 Z 구성 요소입니다.The Z component of this Vector3D structure.

생성자

Vector3D(Double, Double, Double) Vector3D(Double, Double, Double) Vector3D(Double, Double, Double) Vector3D(Double, Double, Double)

Vector3D 구조체의 새 인스턴스를 초기화합니다.Initializes a new instance of a Vector3D structure.

속성

Length Length Length Length

Vector3D 구조체의 길이를 가져옵니다.Gets the length of this Vector3D structure.

LengthSquared LengthSquared LengthSquared LengthSquared

Vector3D 구조체 길이의 제곱을 가져옵니다.Gets the square of the length of this Vector3D structure.

X X X X

X 구조체의 Vector3D 구성 요소를 가져오거나 설정합니다.Gets or sets the X component of this Vector3D structure.

Y Y Y Y

Y 구조체의 Vector3D 구성 요소를 가져오거나 설정합니다.Gets or sets the Y component of this Vector3D structure.

Z Z Z Z

Z 구조체의 Vector3D 구성 요소를 가져오거나 설정합니다.Gets or sets the Z component of this Vector3D structure.

메서드

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

지정된 Point3D 구조체로 지정된 Vector3D 구조체를 변환하고 그 결과를 Point3D 구조체로 반환합니다.Translates the specified Point3D structure by the specified Vector3D structure and returns the result as a Point3D structure.

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

Vector3D 구조체를 추가하고 그 결과를 Vector3D 구조체로 반환합니다.Adds two Vector3D structures and returns the result as a Vector3D structure.

AngleBetween(Vector3D, Vector3D) AngleBetween(Vector3D, Vector3D) AngleBetween(Vector3D, Vector3D) AngleBetween(Vector3D, Vector3D)

첫 번째 지정된 Vector3D 구조체를 두 번째 지정된 Vector3D 구조체에 대해 회전하는 데 필요한 각도를 검색합니다.Retrieves the angle required to rotate the first specified Vector3D structure into the second specified Vector3D structure.

CrossProduct(Vector3D, Vector3D) CrossProduct(Vector3D, Vector3D) CrossProduct(Vector3D, Vector3D) CrossProduct(Vector3D, Vector3D)

Vector3D 구조체의 외적을 계산합니다.Calculates the cross product of two Vector3D structures.

Divide(Vector3D, Double) Divide(Vector3D, Double) Divide(Vector3D, Double) Divide(Vector3D, Double)

지정된 Vector3D 구조체를 지정된 스칼라로 나누고 그 결과를 Vector3D로 반환합니다.Divides the specified Vector3D structure by the specified scalar and returns the result as a Vector3D.

DotProduct(Vector3D, Vector3D) DotProduct(Vector3D, Vector3D) DotProduct(Vector3D, Vector3D) DotProduct(Vector3D, Vector3D)

Vector3D 구조체의 내적을 계산합니다.Calculates the dot product of two Vector3D structures.

Equals(Vector3D, Vector3D) Equals(Vector3D, Vector3D) Equals(Vector3D, Vector3D) Equals(Vector3D, Vector3D)

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

Equals(Vector3D) Equals(Vector3D) Equals(Vector3D) Equals(Vector3D)

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

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

지정된 개체가 Vector3D 구조체인지 확인하고, 지정된 XY, ZObject 속성이 이 X 구조체의 Y, ZVector3D 속성과 같은지 확인합니다.Determines whether the specified object is a Vector3D structure and whether the X, Y, and Z properties of the specified Object are equal to the X, Y, and Z properties of this Vector3D structure.

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

Vector3D 구조체의 해시 코드를 가져옵니다.Gets a hash code for this Vector3D structure.

Multiply(Double, Vector3D) Multiply(Double, Vector3D) Multiply(Double, Vector3D) Multiply(Double, Vector3D)

지정된 스칼라와 지정된 Vector3D 구조체를 곱하고 그 결과를 Vector3D로 반환합니다.Multiplies the specified scalar by the specified Vector3D structure and returns the result as a Vector3D.

Multiply(Vector3D, Double) Multiply(Vector3D, Double) Multiply(Vector3D, Double) Multiply(Vector3D, Double)

지정된 Vector3D 구조체와 지정된 스칼라를 곱하고 그 결과를 Vector3D로 반환합니다.Multiplies the specified Vector3D structure by the specified scalar and returns the result as a Vector3D.

Multiply(Vector3D, Matrix3D) Multiply(Vector3D, Matrix3D) Multiply(Vector3D, Matrix3D) Multiply(Vector3D, Matrix3D)

지정된 Vector3D 구조체를 사용하여 지정된 Matrix3D 구조체의 좌표 공간을 변환합니다.Transforms the coordinate space of the specified Vector3D structure using the specified Matrix3D structure.

Negate() Negate() Negate() Negate()

Vector3D 구조체를 부정합니다.Negates a Vector3D structure.

Normalize() Normalize() Normalize() Normalize()

지정된 Vector3D 구조체를 정규화합니다.Normalizes the specified Vector3D structure.

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

3차원3-D 벡터의 String 표현을 해당 Vector3D 구조체로 변환합니다.Converts a String representation of a 3차원3-D vector into the equivalent Vector3D structure.

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

Point3D 구조체에서 Vector3D 구조체를 뺍니다.Subtracts a Point3D structure from a Vector3D structure.

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

Vector3D 구조체에서 Vector3D 구조체를 뺍니다.Subtracts a Vector3D structure from a Vector3D structure.

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

String 구조체의 Vector3D 표현을 만듭니다.Creates a String representation of this Vector3D structure.

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

String 구조체의 Vector3D 표현을 만듭니다.Creates a String representation of this Vector3D structure.

연산자

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

Vector3D 구조체를 추가하고 그 결과를 Vector3D 구조체로 반환합니다.Adds two Vector3D structures and returns the result as a Vector3D structure.

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

지정된 Point3D 구조체로 지정된 Vector3D 구조체를 변환하고 그 결과를 Point3D 구조체로 반환합니다.Translates the specified Point3D structure by the specified Vector3D structure and returns the result as a Point3D structure.

Division(Vector3D, Double) Division(Vector3D, Double) Division(Vector3D, Double) Division(Vector3D, Double)

지정된 Vector3D 구조체를 지정된 스칼라로 나누고 그 결과를 Vector3D로 반환합니다.Divides the specified Vector3D structure by the specified scalar and returns the result as a Vector3D.

Equality(Vector3D, Vector3D) Equality(Vector3D, Vector3D) Equality(Vector3D, Vector3D) Equality(Vector3D, Vector3D)

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

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

Vector3D 구조체를 Point3D 구조체로 변환합니다.Converts a Vector3D structure into a Point3D structure.

Explicit(Vector3D to Size3D) Explicit(Vector3D to Size3D) Explicit(Vector3D to Size3D) Explicit(Vector3D to Size3D)

Vector3D 구조체를 Size3D 구조체로 변환합니다.Converts a Vector3D structure into a Size3D.

Inequality(Vector3D, Vector3D) Inequality(Vector3D, Vector3D) Inequality(Vector3D, Vector3D) Inequality(Vector3D, Vector3D)

Vector3D 구조체가 다른지 여부를 비교합니다.Compares two Vector3D structures for inequality.

Multiply(Vector3D, Matrix3D) Multiply(Vector3D, Matrix3D) Multiply(Vector3D, Matrix3D) Multiply(Vector3D, Matrix3D)

지정된 Vector3D 구조체를 사용하여 지정된 Matrix3D 구조체의 좌표 공간을 변환합니다.Transforms the coordinate space of the specified Vector3D structure using the specified Matrix3D structure.

Multiply(Double, Vector3D) Multiply(Double, Vector3D) Multiply(Double, Vector3D) Multiply(Double, Vector3D)

지정된 스칼라와 지정된 Vector3D 구조체를 곱하고 그 결과를 Vector3D로 반환합니다.Multiplies the specified scalar by the specified Vector3D structure and returns the result as a Vector3D.

Multiply(Vector3D, Double) Multiply(Vector3D, Double) Multiply(Vector3D, Double) Multiply(Vector3D, Double)

지정된 Vector3D 구조체와 지정된 스칼라를 곱하고 그 결과를 Vector3D로 반환합니다.Multiplies the specified Vector3D structure by the specified scalar and returns the result as a Vector3D.

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

Vector3D 구조체에서 Vector3D 구조체를 뺍니다.Subtracts a Vector3D structure from a Vector3D structure.

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

Point3D 구조체에서 Vector3D 구조체를 뺍니다.Subtracts a Point3D structure from a Vector3D structure.

UnaryNegation(Vector3D) UnaryNegation(Vector3D) UnaryNegation(Vector3D) UnaryNegation(Vector3D)

Vector3D 구조체를 부정합니다.Negates a Vector3D 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 is part of the WPF(Windows Presentation Foundation)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly by your code. 이 멤버에 대한 설명은 ToString(String, IFormatProvider)를 참조하세요.For a description of this member, see ToString(String, IFormatProvider).

적용 대상