Vector3D.Multiply 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
Multiply(Double, Vector3D) | |
Multiply(Vector3D, Double) | |
Multiply(Vector3D, Matrix3D) |
Multiply(Double, Vector3D)
public:
static System::Windows::Media::Media3D::Vector3D Multiply(double scalar, System::Windows::Media::Media3D::Vector3D vector);
public static System.Windows.Media.Media3D.Vector3D Multiply (double scalar, System.Windows.Media.Media3D.Vector3D vector);
static member Multiply : double * System.Windows.Media.Media3D.Vector3D -> System.Windows.Media.Media3D.Vector3D
Public Shared Function Multiply (scalar As Double, vector As Vector3D) As Vector3D
매개 변수
- scalar
- Double
곱할 스칼라입니다.
반환
scalar
와 vector
를 곱한 결과입니다.
예제
다음 예제에서는 스칼라를 구조체로 곱하는 방법을 보여 있습니다 Vector3D .
// Multiplies a Vector3D by a Scalar using the static Multiply method.
// Returns a Vector3D.
Vector3D vector1 = new Vector3D(20, 30, 40);
Double scalar1 = 75;
Vector3D vectorResult = new Vector3D();
vectorResult = Vector3D.Multiply(vector1, scalar1);
// vectorResult is equal to (1500, 2250, 3000)
' Multiplies a Vector3D by a Scalar using the static Multiply method.
' Returns a Vector3D.
Dim vector1 As New Vector3D(20, 30, 40)
Dim scalar1 As Double = 75
Dim vectorResult As New Vector3D()
vectorResult = Vector3D.Multiply(vector1, scalar1)
' vectorResult is equal to (1500, 2250, 3000)
추가 정보
적용 대상
Multiply(Vector3D, Double)
public:
static System::Windows::Media::Media3D::Vector3D Multiply(System::Windows::Media::Media3D::Vector3D vector, double scalar);
public static System.Windows.Media.Media3D.Vector3D Multiply (System.Windows.Media.Media3D.Vector3D vector, double scalar);
static member Multiply : System.Windows.Media.Media3D.Vector3D * double -> System.Windows.Media.Media3D.Vector3D
Public Shared Function Multiply (vector As Vector3D, scalar As Double) As Vector3D
매개 변수
- scalar
- Double
곱할 스칼라입니다.
반환
vector
와 scalar
를 곱한 결과입니다.
예제
다음 예제에서는 스칼라를 통해 구조를 곱 Vector3D 하는 방법을 보여줍니다.
// Multiplies a Vector3D by a Scalar using the static Multiply method.
// Returns a Vector3D.
Vector3D vector1 = new Vector3D(20, 30, 40);
Double scalar1 = 75;
Vector3D vectorResult = new Vector3D();
vectorResult = Vector3D.Multiply(vector1, scalar1);
// vectorResult is equal to (1500, 2250, 3000)
' Multiplies a Vector3D by a Scalar using the static Multiply method.
' Returns a Vector3D.
Dim vector1 As New Vector3D(20, 30, 40)
Dim scalar1 As Double = 75
Dim vectorResult As New Vector3D()
vectorResult = Vector3D.Multiply(vector1, scalar1)
' vectorResult is equal to (1500, 2250, 3000)
추가 정보
적용 대상
Multiply(Vector3D, Matrix3D)
public:
static System::Windows::Media::Media3D::Vector3D Multiply(System::Windows::Media::Media3D::Vector3D vector, System::Windows::Media::Media3D::Matrix3D matrix);
public static System.Windows.Media.Media3D.Vector3D Multiply (System.Windows.Media.Media3D.Vector3D vector, System.Windows.Media.Media3D.Matrix3D matrix);
static member Multiply : System.Windows.Media.Media3D.Vector3D * System.Windows.Media.Media3D.Matrix3D -> System.Windows.Media.Media3D.Vector3D
Public Shared Function Multiply (vector As Vector3D, matrix As Matrix3D) As Vector3D
매개 변수
반환
vector
를 사용하여 matrix3D
를 변환한 결과를 반환합니다.
예제
다음 예제에서는 메서드를 사용하여 Multiply 구조체를 통해 구조를 변환하는 Vector3D 방법을 보여 있습니다 Matrix3D .
// Multiplies a Vector3D by a Matrix3D using the static Multiply method.
// Returns a Vector3D.
Vector3D vector1 = new Vector3D(20, 30, 40);
Matrix3D matrix1 = new Matrix3D(10, 10, 10, 0, 20, 20, 20, 0, 30, 30, 30, 0, 5, 10, 15, 1);
Vector3D vectorResult = new Vector3D();
vectorResult = Vector3D.Multiply(vector1,matrix1);
// vector Result is equal to (2000, 2000, 2000)
' Multiplies a Vector3D by a Matrix3D using the static Multiply method.
' Returns a Vector3D.
Dim vector1 As New Vector3D(20, 30, 40)
Dim matrix1 As New Matrix3D(10, 10, 10, 0, 20, 20, 20, 0, 30, 30, 30, 0, 5, 10, 15, 1)
Dim vectorResult As New Vector3D()
vectorResult = Vector3D.Multiply(vector1,matrix1)
' vector Result is equal to (2000, 2000, 2000)