Struct GcLine
直線もしくは線分
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: GameCanvas
Assembly: GameCanvas.dll
Syntax
public struct GcLine : IPrimitive<GcLine>, IEquatable<GcLine>
Constructors
GcLine(float2, Single)
コンストラクタ(直線)
Declaration
public GcLine(in float2 origin, in float radian)
Parameters
Type | Name | Description |
---|---|---|
float2 | origin | 基準点 |
Single | radian | 傾き(弧度法) |
GcLine(float2, Single, Single)
コンストラクタ(線分)
Declaration
public GcLine(in float2 oridin, in float length, in float radian)
Parameters
Type | Name | Description |
---|---|---|
float2 | oridin | 基準点 |
Single | length | 長さ |
Single | radian | 傾き(弧度法) |
GcLine(float2, Single, float2)
コンストラクタ(線分)
Declaration
public GcLine(in float2 oridin, in float length, in float2 direction)
Parameters
Type | Name | Description |
---|---|---|
float2 | oridin | 基準点 |
Single | length | 長さ |
float2 | direction | 傾きを表す単位ベクトル |
GcLine(float2, float2)
コンストラクタ(直線)
Declaration
public GcLine(in float2 origin, in float2 direction)
Parameters
Type | Name | Description |
---|---|---|
float2 | origin | 基準点 |
float2 | direction |
Fields
Direction
傾きを表す単位ベクトル
Declaration
public float2 Direction
Field Value
Type | Description |
---|---|
float2 |
Length
線分の長さ
Declaration
public float Length
Field Value
Type | Description |
---|---|
Single |
Origin
基準点
Declaration
public float2 Origin
Field Value
Type | Description |
---|---|
float2 |
Methods
Equals(GcLine)
Declaration
public bool Equals(GcLine other)
Parameters
Type | Name | Description |
---|---|---|
GcLine | other |
Returns
Type | Description |
---|---|
Boolean |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
System.ValueType.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
System.ValueType.GetHashCode()
Segment(float2, float2)
コンストラクタ(線分)
Declaration
public static GcLine Segment(in float2 p0, in float2 p1)
Parameters
Type | Name | Description |
---|---|---|
float2 | p0 | 始点 |
float2 | p1 | 終点 |
Returns
Type | Description |
---|---|
GcLine |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Overrides
System.ValueType.ToString()
Operators
Equality(GcLine, GcLine)
Declaration
public static bool operator ==(GcLine lh, GcLine rh)
Parameters
Type | Name | Description |
---|---|---|
GcLine | lh | |
GcLine | rh |
Returns
Type | Description |
---|---|
Boolean |
Inequality(GcLine, GcLine)
Declaration
public static bool operator !=(GcLine lh, GcLine rh)
Parameters
Type | Name | Description |
---|---|---|
GcLine | lh | |
GcLine | rh |
Returns
Type | Description |
---|---|
Boolean |
Implements
System.IEquatable<T>