Public/Get-DotProduct.ps1

function Get-DotProduct {
    <#
    .SYNOPSIS
        Computes the dot product of two vectors.
    .DESCRIPTION
        Returns the scalar dot (inner) product of Vector1 and Vector2.
    .PARAMETER Vector1
        The first vector.
    .PARAMETER Vector2
        The second vector.
    .EXAMPLE
        Get-DotProduct -Vector1 (New-Vector 1,2,3) -Vector2 (New-Vector 4,5,6)
    #>

    [CmdletBinding()]
    [OutputType([double])]
    param(
        [Parameter(Mandatory, Position = 0)]
        [Vector] $Vector1,

        [Parameter(Mandatory, Position = 1)]
        [Vector] $Vector2
    )

    return $Vector1.Dot($Vector2)
}