Class RayEx
Inheritance
System.Object
RayEx
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: PLATEAU.Util
Assembly: cs.temp.dll.dll
Syntax
public static class RayEx
Methods
CalcIntersectionBy2D(Ray, Ray, AxisPlane, out Vector3, out Single, out Single)
半直線selfと半直線otherの交点を求める.
Declaration
public static bool CalcIntersectionBy2D(this Ray self, Ray other, AxisPlane plane, out Vector3 intersection, out float t1, out float t2)
Parameters
Type | Name | Description |
---|---|---|
Ray | self | |
Ray | other | |
AxisPlane | plane | |
Vector3 | intersection | |
System.Single | t1 | |
System.Single | t2 |
Returns
Type | Description |
---|---|
System.Boolean |
To2D(Ray, AxisPlane)
Ray2Dに変換する
Declaration
public static Ray2D To2D(this Ray self, AxisPlane plane)
Parameters
Type | Name | Description |
---|---|---|
Ray | self | |
AxisPlane | plane |
Returns
Type | Description |
---|---|
Ray2D |
To2D(Ray, Func<Vector3, Vector2>)
Ray2Dに変換する
Declaration
public static Ray2D To2D(this Ray self, Func<Vector3, Vector2> toVec2)
Parameters
Type | Name | Description |
---|---|---|
Ray | self | |
Func<Vector3, Vector2> | toVec2 |
Returns
Type | Description |
---|---|
Ray2D |