Click or drag to resize
VariableRotate Method
Microsoft Research
A random vector equal to the vector (x,y) rotated by an angle about the origin.

Namespace: MicrosoftResearch.Infer.Models
Assembly: Infer.Compiler (in Infer.Compiler.dll) Version: 2.6.41128.1 (2.6.41128.1)
Syntax
public static Variable<Vector> Rotate(
	Variable<double> x,
	Variable<double> y,
	Variable<double> angle
)

Parameters

x
Type: MicrosoftResearch.Infer.ModelsVariableDouble
First coordinate of the vector to rotate
y
Type: MicrosoftResearch.Infer.ModelsVariableDouble
Second coordinate of the vector to rotate
angle
Type: MicrosoftResearch.Infer.ModelsVariableDouble
Counter-clockwise rotation angle in radians

Return Value

Type: VariableVector
A new variable
See Also