Class Primitive2D.PolygonShape
- Namespace
- Stride.CommunityToolkit.Rendering.ProceduralModels
- Assembly
- Stride.CommunityToolkit.dll
A polygon from its corners; Polygon(params Vector2[]) makes one.
public sealed record Primitive2D.PolygonShape : Primitive2D, IEquatable<Primitive2D>, IEquatable<Primitive2D.PolygonShape>
- Inheritance
-
Primitive2D.PolygonShape
- Implements
- Inherited Members
Constructors
PolygonShape(Vector2[])
A polygon from its corners; Polygon(params Vector2[]) makes one.
public PolygonShape(Vector2[] Vertices)
Parameters
VerticesVector2[]
Properties
Vertices
public Vector2[] Vertices { get; init; }
Property Value
- Vector2[]