private void CalcModelBorderPoints() { _modelBorderPoints = PrimitiveFactory.Generate2DCircleBorderPointsCW(Vector2.zero, 1.0f, _numBorderPoints); _areModelBorderPointsDirty = false; }
public static void DrawCircle2D(Vector2 circleCenter, float circleRadius, int numPoints, Camera camera) { List <Vector2> circlePoints = PrimitiveFactory.Generate2DCircleBorderPointsCW(circleCenter, circleRadius, numPoints); DrawTriangleFan2D(circleCenter, circlePoints, camera); }