Table of Contents

Method Circle

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

Circle(Vector2, float, Func<Vector2, float>)

Creates a 2D Circle Shape.

public static IImplicitShape<GridPoint2> Circle(Vector2 center, float radius, Func<Vector2, float> norm)

Parameters

center Vector2

Center point of the shape.

radius float

Radius for the sphere.

norm Func<Vector2, float>

This function is used to norm the points of the sphere.

Returns

IImplicitShape<GridPoint2>

Circle(float, Func<Vector2, float>)

Creates a 2D Circle Shape with center in (0,0)

public static IImplicitShape<GridPoint2> Circle(float radius, Func<Vector2, float> norm)

Parameters

radius float

Radius for the sphere.

norm Func<Vector2, float>

This function is used to norm the points of the sphere.

Returns

IImplicitShape<GridPoint2>