You are here: Start » AVL.NET » Invoke.CreateSegment

Invoke.CreateSegment

Produces a segment of given parameters.

Namespace:Avl
Assembly:AvlNet.dll

Syntax

C++
C#
 
public static void CreateSegment
(
	Avl.Point2D inPoint,
	float inPointAnchor,
	float inDirection,
	float inLength,
	out Avl.Segment2D outSegment
)

Parameters

Name Type Range Default Description
inPointAvl.Point2DA point on the created segment.
inPointAnchorfloat<0.0f, 1.0f>Anchor point, 0 means the beginning, 1 means the end of the segment.
inDirectionfloatDesired direction of the segment in degrees.
inLengthfloatDesired length of the segment in pixels.
outSegmentAvl.Segment2DThe resulting segment.

See also