You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Basics » AVL.CreateSegment

AVL.CreateSegment

Produces a segment of given parameters.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

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

Parameters

Name Type Range Default Description
inPointAvlNet.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.
outSegmentAvlNet.Segment2DThe resulting segment.

See also