You are here: Start » AVL.NET » AVL.CreateSegment(AvlNet.Point2D, float, float, float, AvlNet.Segment2D)

AVL.CreateSegment(AvlNet.Point2D, float, float, float, AvlNet.Segment2D)

Produces a segment of given parameters.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void CreateSegment(
	AvlNet.Point2D inPoint,
	float inPointAnchor,
	float inDirection,
	float inLength,
	out AvlNet.Segment2D outSegment
)

Parameters

inPoint
Type: AvlNet.Point2D
A point on the created segment
inPointAnchor
Type: System.Single
Anchor point, 0 means the beginning, 1 means the end of the segment
inDirection
Type: System.Single
Desired direction of the segment in degrees
inLength
Type: System.Single
Desired length of the segment in pixels
outSegment
Type: AvlNet.Segment2D
The resulting segment

See also