Click or drag to resize
Ab4d.SharpEngine logo

RectangleNode(Vector3, PositionTypes, Vector2, Vector3, Vector3, Color4, Single, String) Constructor

Constructor

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
public RectangleNode(
	Vector3 position,
	PositionTypes positionType,
	Vector2 size,
	Vector3 widthDirection,
	Vector3 heightDirection,
	Color4 lineColor,
	float lineThickness,
	string? name = null
)

Parameters

position  Vector3
position as Vector3
positionType  PositionTypes
type of position
size  Vector2
Size of the rectangle (width and height of the 2D shape).
widthDirection  Vector3
Direction vector of the width dimension.
heightDirection  Vector3
Direction vector of the height dimension.
lineColor  Color4
line color as Color3
lineThickness  Single
line thickness in screen-space (in pixels divided by dpi scale; e.g. lineThickness: 10 and dpiScale: 1.5 will produce actual thickness with 15 pixels)
name  String  (Optional)
optional name
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.SceneNodes.RectangleNode.#ctor(System.Numerics.Vector3,Ab4d.SharpEngine.Common.PositionTypes,System.Numerics.Vector2,System.Numerics.Vector3,System.Numerics.Vector3,Ab4d.SharpEngine.Common.Color4,System.Single,System.String)"]

See Also