GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SG_LINE(3) FreeBSD Library Functions Manual SG_LINE(3)

SG_LineAgar-SG line node

#include <agar/core.h>
#include <agar/sg.h>

The SG_Line node represents a line segment or half-line in space. This is useful in feature-based modeling, or as construction geometry.

AG_Object(3) -> SG_Node(3) -> SG_Geom(3) -> SG_Line.

SG_Line *
(SG_Node *parent, const char *name, const M_Line3 *ln);


void
(SG_Line *line, M_Real len);


void
(SG_Line *line, M_Color c);


void
(SG_Line *line, int factor, Uint16 pattern);

The () function creates a new point at the origin of the parent node. If the ln argument is non-NULL, the line is initialized to the specified M_Line(3) values.

The functions (), SG_LineColor() and SG_LineStipple() specify the properties used for graphically rendering the line.

For the SG_Line object:

M_Vector3 n
Normal vector.
M_Real len
Length of line segment.
M_Real wd
Width in pixels for rendering.
M_Color c
Color for rendering.
int stFactor
Stipple factor.
Uint16 stPat
Stipple pattern.

M_Color(3), M_Line(3), M_Real(3), M_Vector(3), SG(3), SG_Geom(3), SG_Intro(3), SG_Node(3), SG_Plane(3), SG_Point(3)

The SG_Line node class first appeared in Agar 1.6.0.

December 21, 2022 Agar 1.7

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.