Class Ray2DEx
Inheritance
System.Object
Ray2DEx
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 Ray2DEx
Methods
CalcIntersection(Ray2D, Ray2D, out Vector2, out Single, out Single)
半直線selfと半直線otherの交点を求める.
Declaration
public static bool CalcIntersection(this Ray2D self, Ray2D other, out Vector2 intersection, out float t1, out float t2)
Parameters
Type | Name | Description |
---|---|---|
Ray2D | self | |
Ray2D | other | |
Vector2 | intersection | |
System.Single | t1 | |
System.Single | t2 |
Returns
Type | Description |
---|---|
System.Boolean |
IsPointOnLeftSide(Ray2D, Vector2)
pointがselfの左側にあるかどうか
Declaration
public static bool IsPointOnLeftSide(this Ray2D self, Vector2 point)
Parameters
Type | Name | Description |
---|---|---|
Ray2D | self | |
Vector2 | point |
Returns
Type | Description |
---|---|
System.Boolean |
ToLogString(Ray2D)
Declaration
public static string ToLogString(this Ray2D self)
Parameters
Type | Name | Description |
---|---|---|
Ray2D | self |
Returns
Type | Description |
---|---|
System.String |