VectorFrom
Introduction
Code Example
using FlatRedBall.Input;
using FlatRedBall.Math.Geometry;
using FlatRedBall.Graphics;Line connectingLine;
Polygon polygon;
Text text;polygon = ShapeManager.AddPolygon();
Point[] points = new Point[]
{
new Point(-5, 5),
new Point(5, 5),
new Point(5, 4),
new Point(-4, 4),
new Point(-4, -4),
new Point(5, -4),
new Point(5, -5),
new Point(-5, -5),
new Point(-5, 5)
};
polygon.Points = points;
IsMouseVisible = true;
connectingLine = ShapeManager.AddLine();
connectingLine.RelativePoint1 = new Point3D();
text = TextManager.AddText("");
text.Y = 8;
Last updated
Was this helpful?