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
V2
public Vector2 V2
Field Value
V3
public Vector2 V3
Field Value
V4
public Vector2 V4
Field Value
Properties
this[int]
public Vector2 this[int index] { get; set; }
Parameters
index
int
Property Value
Methods
Contains(Vector2)
public bool Contains(Vector2 point)
Parameters
point
Vector2
Returns
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
Overlaps(Quadrangle)
Returns true if the quadrangles have common points.
public bool Overlaps(Quadrangle quadrangle)
Parameters
quadrangle
Quadrangle
Returns
ToAABB()
public Rectangle ToAABB()
Returns
Transform(Matrix32)
public Quadrangle Transform(Matrix32 matrix)
Parameters
matrix
Matrix32
Returns
Operators
operator *(Quadrangle, Matrix32)
public static Quadrangle operator *(Quadrangle q, Matrix32 m)
Parameters
q
Quadranglem
Matrix32
Returns
operator *(Quadrangle, Vector2)
public static Quadrangle operator *(Quadrangle q, Vector2 v)
Parameters
q
Quadranglev
Vector2