Click or drag to resize

AlgorithmsRotate120About Method (IEnumerableFlatHexPoint, FlatHexPoint, FlatHexPoint, FlatHexPoint)

Rotates a shape 120 degrees around the vertice shared by the three given points. The three points must form a close triangle (they must share a vertex).

Namespace:  Gamelogic.Grids
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public static IEnumerable<FlatHexPoint> Rotate120About(
	IEnumerable<FlatHexPoint> shape,
	FlatHexPoint p1,
	FlatHexPoint p2,
	FlatHexPoint p3
)

Parameters

shape
Type: System.Collections.GenericIEnumerableFlatHexPoint
p1
Type: Gamelogic.GridsFlatHexPoint
p2
Type: Gamelogic.GridsFlatHexPoint
p3
Type: Gamelogic.GridsFlatHexPoint

Return Value

Type: IEnumerableFlatHexPoint
See Also