Table of Contents

Struct Quadrangle

Namespace
Lime
Assembly
Lime.dll
public struct Quadrangle : IEnumerable<Vector2>, IEnumerable
Implements
Inherited Members
Extension Methods

Fields

V1

public Vector2 V1

Field Value

Vector2

V2

public Vector2 V2

Field Value

Vector2

V3

public Vector2 V3

Field Value

Vector2

V4

public Vector2 V4

Field Value

Vector2

Properties

this[int]

public Vector2 this[int index] { get; set; }

Parameters

index int

Property Value

Vector2

Methods

Contains(Vector2)

public bool Contains(Vector2 point)

Parameters

point Vector2

Returns

bool

GetEnumerator()

Returns an enumerator that iterates through the collection.

public IEnumerator<Vector2> GetEnumerator()

Returns

IEnumerator<Vector2>

An enumerator that can be used to iterate through the collection.

Intersects(Quadrangle)

Returns true if one side of the first quadrangle intersects a side of the second quadrangle.

public bool Intersects(Quadrangle quadrangle)

Parameters

quadrangle Quadrangle

Returns

bool

Overlaps(Quadrangle)

Returns true if the quadrangles have common points.

public bool Overlaps(Quadrangle quadrangle)

Parameters

quadrangle Quadrangle

Returns

bool

ToAABB()

public Rectangle ToAABB()

Returns

Rectangle

Transform(Matrix32)

public Quadrangle Transform(Matrix32 matrix)

Parameters

matrix Matrix32

Returns

Quadrangle

Operators

operator *(Quadrangle, Matrix32)

public static Quadrangle operator *(Quadrangle q, Matrix32 m)

Parameters

q Quadrangle
m Matrix32

Returns

Quadrangle

operator *(Quadrangle, Vector2)

public static Quadrangle operator *(Quadrangle q, Vector2 v)

Parameters

q Quadrangle
v Vector2

Returns

Quadrangle