Click or drag to resize
Ab4d.SharpEngine logo

CircleModelNodeCreateRectangle(Vector3, PositionTypes, Vector2, Single, Vector3, Vector3) Method

CreateRectangle sets the properties of this CircleModelNode so that it renders a rectangle (Segments is set to 4 and StartAngle to 45) with the specified width and height (size) and direction. When innerSizeFactor is between 0 and 1, then center is hollow because InnerRadius is set. This method also calls the Update method that updates the mesh.

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
public void CreateRectangle(
	Vector3 position,
	PositionTypes positionType,
	Vector2 size,
	float innerSizeFactor,
	Vector3 widthDirection,
	Vector3 heightDirection
)

Parameters

position  Vector3
position of the rectangle
positionType  PositionTypes
position type
size  Vector2
size of the rectangle
innerSizeFactor  Single
when bigger than 0 and smaller than 1, then this sets how much smaller the InnerRadius is.
widthDirection  Vector3
width direction
heightDirection  Vector3
height direction
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.SceneNodes.CircleModelNode.CreateRectangle(System.Numerics.Vector3,Ab4d.SharpEngine.Common.PositionTypes,System.Numerics.Vector2,System.Single,System.Numerics.Vector3,System.Numerics.Vector3)"]

See Also