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