Struct ProjectedLabel
A projected overlay label. Coordinates use the same pixel space as the frame.
Implements
Inherited Members
Namespace: Simple3D.Core
Assembly: Simple3D.Core.dll
Syntax
public readonly record struct ProjectedLabel : IEquatable<ProjectedLabel>
Constructors
| Edit this page View SourceProjectedLabel(WorldLabel, Vector2, float)
A projected overlay label. Coordinates use the same pixel space as the frame.
Declaration
public ProjectedLabel(WorldLabel Label, Vector2 Position, float Depth)
Parameters
| Type | Name | Description |
|---|---|---|
| WorldLabel | Label | Source label. |
| Vector2 | Position | Anchor measured from the top left. |
| float | Depth | Positive distance along the view axis. |
Properties
| Edit this page View SourceDepth
Positive distance along the view axis.
Declaration
public float Depth { get; init; }
Property Value
| Type | Description |
|---|---|
| float |
Label
Source label.
Declaration
public WorldLabel Label { get; init; }
Property Value
| Type | Description |
|---|---|
| WorldLabel |
Position
Anchor measured from the top left.
Declaration
public Vector2 Position { get; init; }
Property Value
| Type | Description |
|---|---|
| Vector2 |