Line Structure |
[SerializableAttribute] public struct Line
The Line type exposes the following members.
Name | Description | |
---|---|---|
Line(Line) | 根据已有的线段对象创建一个新的线段副本。 | |
Line(Vec3, Vec3) | 根据两个点创建一条线段。 |
Name | Description | |
---|---|---|
Dir | 获取线段的方向向量。 | |
Item | 获取线段的端点。 | |
Length | 获取线段的长度。 | |
LengthSqr | 获取线段长度的平方。 | |
NormalizedDir | 获取归一化后的线段方向向量。 |
Name | Description | |
---|---|---|
Equals |
比较当前线段与另一个对象是否相等。
(Overrides ValueTypeEquals(Object)) | |
GetHashCode |
获取当前线段的哈希代码。
(Overrides ValueTypeGetHashCode) | |
HasIntersect | 检查当前线段是否与另一个线段相交。 | |
Intersect | 计算当前直线与另一条直线的交点。 | |
Proj | 计算给定点在线段上的投影点。 | |
Sample | 根据给定的参数t,在线段上采样点。 | |
T | 计算点在线段上的参数t值。 | |
ToString |
返回表示当前线段的字符串。
(Overrides ValueTypeToString) |
Name | Description | |
---|---|---|
Equality(Line, Line) | ||
Inequality(Line, Line) |