HalfLine
HalfLine[{p1,p2}]
represents the half-line from the point p1 through p2.
HalfLine[p,v]
represents the half-line from the point p in the direction v.
Details
- HalfLine is also known as ray.
- HalfLine can be used as a geometric region and graphics primitive.
- HalfLine represents a linear curve or .
- HalfLine can be used in Graphics and Graphics3D.
- HalfLine will be clipped by PlotRange when rendering.
- In graphics, the points p, pi and vector v can be Dynamic expressions.
- Graphics rendering is affected by directives such as Thickness, Dashing, and color.
- HalfLine can be used with symbolic points in GeometricScene.
Examples
open allclose allBasic Examples (3)
A HalfLine in 2D:
Scope (18)
Graphics (9)
Specification (3)
Define a HalfLine starting at in the direction :
Define the same half-line starting at and passing through :
Define a 3D half-line starting at and going in the direction :
Styling (5)
A HalfLine with varying thickness:
Thickness in printer's points:
Half-lines can be rendered in dashed or dotted styles:
Color directives can be used to specify the color of a half-line:
Coordinates (1)
Points and vectors can be Dynamic:
Regions (9)
Embedding dimension is the dimensionality of the vertices:
Geometric dimension is the dimension of the region itself:
Get conditions for membership:
A half-line has infinite measure and undefined centroid:
Computing distance to a half-line:
But its range is not necessarily unbounded in all dimensions:
Applications (4)
Properties & Relations (4)
Any InfiniteLine is a union of two half-lines:
ParametricRegion can represent any HalfLine:
ImplicitRegion can represent any HalfLine:
HalfLine is a special case of ConicHullRegion:
Text
Wolfram Research (2014), HalfLine, Wolfram Language function, https://reference.wolfram.com/language/ref/HalfLine.html.
CMS
Wolfram Language. 2014. "HalfLine." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/HalfLine.html.
APA
Wolfram Language. (2014). HalfLine. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/HalfLine.html