Table of Contents

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

oridin float2

基準点

length float

長さ

radian float

傾き(弧度法)

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

float

Origin

基準点

public float2 Origin

Field Value

float2

Methods

Equals(GcLine)

public readonly bool Equals(GcLine other)

Parameters

other GcLine

Returns

bool

Equals(object)

public override readonly bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override readonly int GetHashCode()

Returns

int

Segment(in float2, in float2)

コンストラクタ(線分)

public static GcLine Segment(in float2 p0, in float2 p1)

Parameters

p0 float2

始点

p1 float2

終点

Returns

GcLine

ToString()

public override readonly string ToString()

Returns

string

Operators

operator ==(GcLine, GcLine)

public static bool operator ==(GcLine lh, GcLine rh)

Parameters

lh GcLine
rh GcLine

Returns

bool

operator !=(GcLine, GcLine)

public static bool operator !=(GcLine lh, GcLine rh)

Parameters

lh GcLine
rh GcLine

Returns

bool