C# Class Vertesaur.Generation.Expressions.DotProductExpression

An expression representing the dot product of two vectors.
Inheritance: ReducibleExpressionBase
Show file Open project: aarondandy/vertesaur

Private Properties

Property Type Description
CodeContractInvariants void

Public Methods

Method Description
DotProductExpression ( Expression components, IExpressionGenerator reductionExpressionGenerator = null ) : System

Creates a new dot product expression.

Reduce ( ) : Expression

Private Methods

Method Description
CodeContractInvariants ( ) : void

Method Details

DotProductExpression() public method

Creates a new dot product expression.
public DotProductExpression ( Expression components, IExpressionGenerator reductionExpressionGenerator = null ) : System
components System.Linq.Expressions.Expression The ordered components of the two vectors in the order of first vectors coordinates then second vectors coordinates (ex: x0,y0,x1,y1).
reductionExpressionGenerator IExpressionGenerator The optional expression generator that can be used to produce reduced expressions.
return System

Reduce() public method

public Reduce ( ) : Expression
return System.Linq.Expressions.Expression