Back to Adaptive Vision Library website

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

CreateSegment3D


Produces a segment in 3D of given parameters.

Syntax

C++
C#
 
void avl::CreateSegment3D
(
	const avl::Point3D& inPoint3D,
	float inPointAnchor,
	const avl::Vector3D& inDirectionVector,
	float inLength,
	avl::Segment3D& outSegment3D
)

Parameters

Name Type Range Default Description
inPoint3D const Point3D& A point on the created segment
inPointAnchor float 0.0 - 1.0 Anchor point, 0 means the beginning, 1 means the end of the segment
inDirectionVector const Vector3D& Desired direction of the segment
inLength float Desired length of the segment in pixels
outSegment3D Segment3D& The resulting segment