You are here: Start » AVL.NET » Function Reference » Geometry 3D » Geometry 3D Basics » AVL.CreateSegment3D

AVL.CreateSegment3D

Produces a segment in 3D of given parameters.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void CreateSegment3D
(
	AvlNet.Point3D inPoint3D,
	float inPointAnchor,
	AvlNet.Vector3D inDirectionVector,
	float inLength,
	out AvlNet.Segment3D outSegment3D
)

Parameters

Name Type Range Default Description
inPoint3DAvlNet.Point3DA point on the created segment.
inPointAnchorfloat<0.0f, 1.0f>Anchor point, 0 means the beginning, 1 means the end of the segment.
inDirectionVectorAvlNet.Vector3DDesired direction of the segment.
inLengthfloatDesired length of the segment in pixels.
outSegment3DAvlNet.Segment3DThe resulting segment.

See also