new Line(point, dir)
Line
This:
Parameters:
| Name | Type | Argument | Description |
|---|---|---|---|
point |
Raphael3d.Vector3 |
<optional> |
one point of the line |
dir |
Raphael3d.Vector3 |
<optional> |
directon vector of the line |
- Source:
- /var/www/html/software/raphael3d/raphael3d.src.js, line 3069
Properties:
| Name | Type | Description |
|---|---|---|
point |
Raphael3d.Vector3 | one point of the line |
dir |
Raphael3d.Vector3 | directon vector of the line |
Methods
-
<static> create(point, dir) → {Raphael3d.Geom.Line}
-
Creates new Line object. See Raphael3d.Geom.Line for arguments
Parameters:
Name Type Argument Description pointRaphael3d.Vector3 <optional>
dirRaphael3d.Vector3 <optional>
- Source:
- /var/www/html/software/raphael3d/raphael3d.src.js, line 3079
Returns:
new Line object- Type
- Raphael3d.Geom.Line
-
<static> FromEdge(edge) → {Raphael3d.Geom.Line}
-
Sets receiver attributes according to given edge
Parameters:
Name Type Description edgeRaphael3d.Edge given edge - Source:
- /var/www/html/software/raphael3d/raphael3d.src.js, line 3168
Returns:
new Line object- Type
- Raphael3d.Geom.Line
-
<static> FromTwoPoints(p1, p2) → {Raphael3d.Geom.Line}
-
Sets receiver attributes according to given points
Parameters:
Name Type Description p1Raphael3d.Vector3 1st point p2Raphael3d.Vector3 2nd point - Source:
- /var/www/html/software/raphael3d/raphael3d.src.js, line 3160
Returns:
new Line object- Type
- Raphael3d.Geom.Line
-
computeIntersectionWithAAPlane(string, val) → {Raphael3d.Vector3|null}
-
Computes intersection of receiver with a given axis aligned plane
Parameters:
Name Type Description stringstring 'x', plane x=val, 'y', plane y=val, 'z' plane z=val valnumber see 'string' param - Source:
- /var/www/html/software/raphael3d/raphael3d.src.js, line 3109
Returns:
intersection point- Type
- Raphael3d.Vector3 | null
-
computeIntersectionWithPlane(plane) → {Raphael3d.Vector3|null}
-
Computes intersection of receiver with a given plane
Parameters:
Name Type Description planeRaphael3d.Geom.Plane given plane - Source:
- /var/www/html/software/raphael3d/raphael3d.src.js, line 3093
Returns:
intersection point- Type
- Raphael3d.Vector3 | null
-
fromEdge(edge) → {Raphael3d.Geom.Line}
-
Sets receiver attributes according to given points
Parameters:
Name Type Description edgeRaphael3d.Edge given edge - Source:
- /var/www/html/software/raphael3d/raphael3d.src.js, line 3150
Returns:
receiver- Type
- Raphael3d.Geom.Line
-
fromTwoPoints(p1, p2) → {Raphael3d.Geom.Line}
-
Sets receiver attributes according to given points
Parameters:
Name Type Description p1Raphael3d.Vector3 | Raphael3d.Vertex 1st point p2Raphael3d.Vector3 | Raphael3d.Vertex 2nd point - Source:
- /var/www/html/software/raphael3d/raphael3d.src.js, line 3139
Returns:
receiver- Type
- Raphael3d.Geom.Line