次の方法で共有


Vector4.Dot Method (Vector4, Vector4)

Calculates the dot product of two vectors.

Syntax

'Declaration
Public Shared Function Dot ( _
         vector1 As Vector4, _
         vector2 As Vector4 _
) As Single 
public static float Dot (
         Vector4 vector1,
         Vector4 vector2
)
public:
static float Dot(
         Vector4 vector1,
         Vector4 vector2
)

Parameters

  • vector1
    Type: Vector4
    Source vector.
  • vector2
    Type: Vector4
    Source vector.

Return Value

Type: Single
The dot product of the two vectors.

Requirements

Namespace: Microsoft.Xna.Framework

Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

See Also

Reference

Vector4 Structure
Vector4 Members
Microsoft.Xna.Framework Namespace

Platforms

Windows Phone